Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "random/base/minstd-shuffle/docs/types/index.d"

Index

Interfaces

Variables

Variables

minstd

minstd: Random

Returns a pseudorandom integer on the interval [1, 2147483646].

Notes

  • This pseudorandom number generator (PRNG) is a linear congruential pseudorandom number generator (LCG) whose output is shuffled using the Bays- Durham algorithm. The shuffle step considerably strengthens the "randomness quality" of a simple LCG's output.
  • The generator has a period of approximately 2.1e9.
  • An LCG is fast and uses little memory. On the other hand, because the generator is a simple LCG, the generator has recognized shortcomings. By today's PRNG standards, the generator's period is relatively short. In general, this generator is unsuitable for Monte Carlo simulations and cryptographic applications.
returns

pseudorandom number