Crate randu

source ·
Expand description

RANDU is Pseudo random multiplicative congruential generator MCG65539 used during 1960’s and 1970’s in the IBM Scientific Subroutine Library for IBM System/360 computers. Oesis A096555.

RANDU uses following MCG coeficients:

  • multiplier a = 65539 ( 2^16 + 3 )
  • modulus m = 2147483648 ( 2^31 )

RANDU generates non negative 31-bit integers with 2^29 period. Generated values fails the spectral test for dimensions greater than 2 and have low randomness in lower bits.

Unlicensed software

This is free and unencumbered software released into the public domain.

Structs§

  • Structure holding current state of RANDU generator.

Constants§

  • multiplier A coeficient 2^16 + 3
  • modulus M coeficient 2^31
  • RANDU start value