other.linear_congruential_generator¶
Attributes¶
Classes¶
A pseudorandom number generator. |
Module Contents¶
- class other.linear_congruential_generator.LinearCongruentialGenerator(multiplier, increment, modulo, seed=int(time()))¶
A pseudorandom number generator.
- next_number()¶
The smallest number that can be generated is zero. The largest number that can be generated is modulo-1. modulo is set in the constructor.
- increment¶
- modulo¶
- multiplier¶
- seed¶
- other.linear_congruential_generator.__author__ = 'Tobias Carryer'¶
- other.linear_congruential_generator.lcg¶