Python liczby losowej
# 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)
import random
words = ['tree','sun','ball','moon','earth','grass','world']
word = random.choice(words)
print(word)
from random import randint
randint(0,5)#0<=randomNumber<=5
import random
print(random.randint(15, 30)) #Prints a number from 15 to 30 after picking a random number from 15 to 30
RandomNumber = random.randint(0,100)
print(RandomNumber)
import random
random_number = random.randint(1,999)
print(random_number)
# imports random library
import random
# randint generates a random number between the first parameter and the second
print(random.randint(-100, 100))