The Random Number Generator interface describes the methods which are available for all random number generators. This will be enhanced in future releases of Python.
In this release of Python, the modules random, whrandom, and instances of the whrandom.whrandom class all conform to this interface.
Returns a random integer N such that
a <= N <= b
.
range(start,
stop, step)
. This is equivalent to
choice(range(start, stop, step))
.
Nuevo en la versión 1.5.2.
a <= N < b
.