+ 1

How can i print random numbers in Python?

You guys can copy paste the code here or recommend me the lessons in Python Thanks for helping in advance

5th Aug 2018, 5:30 AM
Hồng Vĩ
Hồng Vĩ - avatar
2 Antworten
+ 4
using random module For example, from random import randint print(randint(1,10)) #prints a random integer between 1 and 10, both included
5th Aug 2018, 5:43 AM
Satyam
+ 1
oh I suddenly remembered it thanks
5th Aug 2018, 5:44 AM
Hồng Vĩ
Hồng Vĩ - avatar