0

How can we generate random numbers in Python?

1st Jan 2020, 2:58 PM
Priyanshu Bhattacharjee
Priyanshu Bhattacharjee - avatar
2 ответов
+ 4
With the random module. import random print(random.randint(0,10)) will print a random number between 0 and 10 (inclusive).
1st Jan 2020, 3:00 PM
Russ
Russ - avatar
+ 6
This question has been asked before, please use the searchbar.
1st Jan 2020, 3:03 PM
Aymane Boukrouh
Aymane Boukrouh - avatar