+ 1

How do you make a Random Number Generator in Python?

Need a Random Number Generator for a code.

6th Mar 2017, 3:26 PM
Anonymous
2 Answers
+ 11
import random // some codes pertaining random numbers
6th Mar 2017, 4:00 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Use this: import random x=random.randint(0, 5) #This will choose a number from 0 to 5
6th Mar 2017, 4:27 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar