0
how to generate a random number with python
for a rand.password generator
5 Answers
0
from random import*
a=randint(0,10)
print(a)
a is a random integer between 0 and 10
+ 2
import random
num=random.randint(5, 10)
# radius from 5 to 10
+ 1
thanks friends
+ 1
but what is import random.
is it nesscesary to generate rand int
0
randint( 0, 10)
out put
0 to 10
or
between them