Home | Trees | Indices | Help |
|
---|
|
object --+ | MTRandom
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
Uniform random number generator object. Instantiate a uniform random number generator. This should be the Mersenne Twister based generator that is standard in Python (at least up to version 2.6). Generates floating point numbers in the range [0-1]. If neither seed nor state are supplied, this will use the current time to generate a seed. NB To set the matlab random number generator to the same known state as the python generator, you need to convert the signed values of the seed into unsigned values as follows: >> seed = [get me from file etc..]; >> seed(seed < 0 ) = seed(seed < 0) + (2^32); >> rand('twister', seed);
|
|
|
Generate random numbers. With no arguments generates a single floating point random number on the range [0-1]. If count is specified, then returns a list of count random numbers.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Nov 17 00:22:04 2018 | http://epydoc.sourceforge.net |