Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Interfaces

Variables

Variables

Export assignment 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) based on Park and Miller.
  • 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. More importantly, the "randomness quality" of the generator's output is lacking. These defects make the generator unsuitable, for example, in Monte Carlo simulations and in cryptographic applications.
returns

pseudorandom number