To generate a random floating number in the range 0 to 100, random() or random.random() function is used.