Random Generators
Generate pseudo-random numbers and choices.
Use the different methods of the built-in random
object for this.
Int()
Int()
Parameters
An integer.
The start of the range.
Float()
Float()
Parameters
A float.
The start of the range.
Element()
Element()
Parameters
The iterable to get random elements from.
E.g. a list.
Last updated