Случайное число Python
# generate random integer values
from random import randint
value = randint(0, 10)
print(value)
Successful Stoat
# generate random integer values
from random import randint
value = randint(0, 10)
print(value)
from random import randint
print(randint(1, 10))
# prints a random integer from 1 to 10
import random
random.sample(range(31), 10)
from random import randint
print(randint(3, 9))
import random
random.randint(1, 1000) #inclusive
random.randint(0, 100)
##This would make the random number be from 0 to 100