Random Numbers in Python



I want to generate random numbers in Python. How can I achieve that?

..Jake



Jake

The standard module random will implement a random number generator.

Here is how you can do it...

import random
random.random()

I hope this helps you.