python selecta random sequence code example
Example 1: n random numbers python
>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]
Example 2: how to generate a random number python
import random
n = random.randint(0,22)
print(n)
>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]
import random
n = random.randint(0,22)
print(n)