Zufällige Zahl 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)
# imports random
import random
# randint generates a random integar between the first parameter and the second
print(random.randint(1, 100))
import random
words = ['tree','sun','ball','moon','earth','grass','world']
word = random.choice(words)
print(word)
# imports random
import random
# randint generates a random integar between the first parameter and the second
print(random.randint(1, 100))
# random generates a random real number in the interval [0, 1)
print(random.random())
#import random
import random
names = ['Harry', 'John', 'Smith', 'Larry']
#print random name from names
print(random.choice(names))
#print random integer in a range of numbers
print(random.randint(1, 100)
#imports
import random
#randint generates a random number between the first set and the second set of parameters
x = random.randint(1, 100)
print(x)