transsys :: utils :: transrnd :: Class transrnd
[hide private]
[frames] | no frames]

Class transrnd

source code

Random number generator class.

This is a legacy random number generator which was introduced before the standard Python random package appeared. It is a Python implementation of the random number generator implemented by the random function in the GNU C standard library.

This class should not be used anymore in new projects.

Instance Methods [hide private]
__init__(self, seed=1, state=None, fptr=None, rptr=None) source code
srandom(self, seed) source code
random(self) source code
rnd(self) source code
random_range(self, rceil) source code
adapted from Numerical Recipes in C
source code