The random.choice(x) function returns a random element of a list, or a random character of a string.
import random
print(random.choice(['apples', 'bananas', 'pears'])) # randomly prints apples, bananas, or pears
print(random.choice('abc')) # randomly prints a, b, or cThe random.randint(x, y) function returns a random integer between x and y (inclusive - it can be x or y as well).
import random
print(random.randint(5, 10)) # randomly prints 5, 6, 7, 8, 9, or 10The random.shuffle(x) module randomly shuffles a list in-place (it does not return a new list).
import random
fruits = ['apples', 'bananas', 'pears']
random.shuffle(fruits)
print(fruits) # e.g. ['bananas', 'pears', 'apples']