Answers for "how to call a random number in python"

10

python function to print random number

import random
n = random.randint(0,22)
print(n)
Posted by: Guest on June-03-2020
2

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)()
Posted by: Guest on July-30-2020

Code answers related to "how to call a random number in python"

Python Answers by Framework

Browse Popular Code Answers by Language