how to call a random number in python code example
Example 1: python random number
from random import randint
print(randint(1,5))
##Possible Outputs##
#1
#2
#3
#4
#5
Example 2: python function to print random number
import random
n = random.randint(0,22)
print(n)
Example 3: how to call a random function in python
import random
my_list = [func_test_1, func_test_2, func_test_3]
random.choice(my_list)()