0

What is the syntax to generate random numbers un python..

In both versions 2 and 3

15th May 2018, 5:49 AM
Rudransh Sharma
1 Antwort
0
import random print random.randint(1,50) #generates a random number between 1 and 50
15th May 2018, 6:02 AM
᠌᠌Code X
᠌᠌Code X - avatar