4.3.2 Random numbers

Some of the problems require random numbers. In order to generate a random number (float) in the range 0 to 1 import the random library by typing from random import * at the top of your program. You then have access to the random() function which takes no parameters, and returns a random number in the above interval.