Random Number Functions

Randomness is added to programs by using random numbers. These are generated by random number functions.

Python has a package called random.
Two of the functions it provides are:

random()
Returns a random floating point number between 0 and 1.
uniform(a,b)
Returns a random floating point number between a and b.