Generates a random number between 1 and 50. Change the maximum number by changing the number in the print(rollone(50)) function. See image.
from random import randint
thanks for the feedback @arnoldde this allows more breathing room with an ability to change the minimum. I will definitely use