xxxxxxxxxx
#import the module
import random
#Get a random value between 0.0 and 1.0
random_value = random.random()
print(random_value)
xxxxxxxxxx
import random
print(random.randint(3, 7)) #Prints a random number between 3 and 7
array = [cars, bananas, jet]
print(random.choice(array)) #Prints one of the values in the array at random
xxxxxxxxxx
import random
my_list = [func_test_1, func_test_2, func_test_3]
random.choice(my_list)()
xxxxxxxxxx
import random
my_list = [1, 'a', 32, 'c', 'd', 31]
print(random.choice(my_list))
xxxxxxxxxx
#import the module
import random
#Get a random value between 0.0 and 1.0
random_value = random.random()
print(random_value)