How can you get a random number in python?

random() − returns a random float r, such that 0 is less than or equal to r and r is less than 1.