Generate random numbers or select random items from sequences.
Source Code
import random
print(random.randint(1, 100)) # Random integer between 1 and 100
print(random.choice(["apple", "banana", "cherry"])) # Randomly select an item
Generate random numbers or select random items from sequences.
import random
print(random.randint(1, 100)) # Random integer between 1 and 100
print(random.choice(["apple", "banana", "cherry"])) # Randomly select an item