Skip to content
← Back to Community
Random Number Generator
Profile icon
itbarsoum

https://repl.it/@itbarsoum/Random-Number-Generator

Generates a random number between 1 and 50. Change the maximum number by changing the number in the print(rollone(50)) function. See image.
image

Voters
Profile icon
Ethanol
Profile icon
TreysonMurphy
Profile icon
itbarsoum
Comments
hotnewtop
Profile icon
Arnoldde

from random import randint
print(randint(0, 50))

Profile icon
itbarsoum

thanks for the feedback @arnoldde this allows more breathing room with an ability to change the minimum. I will definitely use