Python has a library of functions that enable you to generate all sorts of random numbers.
The first thing you will need to do, is import the Random library, thus:
To use the functions from the random library, you do so by calling the functions as a sub-property of random, with any required arguments specified in the parenthesis thusly:
Generate a random integer
Returns a random integer between the specified integers, where arg1 and arg2 are variables containing the low and high and low bounds.:
Choose a random element from a list or container
Returns a randomly selected element from a non-empty sequence (indicated here by the argument container):
Randomly shuffle a list
This functions randomly reorders the elements in a list - indicated here with the argument, my_list.