python n random int code example
Example 1: random int python
import random
random.randint(1, 1000) #inclucive
Example 2: n random numbers python
>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]
import random
random.randint(1, 1000) #inclucive
>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]