Share your repls and programming experiences

← Back to all posts
Random Number Generator
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.

Voters
Ethanol
TreysonMurphy
itbarsoum
Comments
hotnewtop
Arnoldde

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

itbarsoum

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