User:Mhn1257/sandbox

= Random (Python module) = Random is the name of a Python module that is used to generate various pseudorandom variables, such as a number between a specified range. It also has the ability to select an item from a list or string, and it can shuffle elements in a list.

The Random module was translated from C source, provided by Adrian Baddeley, into Python by Guido van Rossum.

Functions
One of the most commonly used functions within the Random module is the randint function. This function generates an integer between two inputted numbers. Below is an example of the randint function being used to generate a number between 1 and 10: Another similar function is uniform. This function is used to generate a float, instead of an integer.