Randomness

version 1/080522 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 3 - Initialize the generators

    To initialize the random number generators:
        let seed be 1234;
        repeat with prng running through pseudorandom number generators:
            change the multiplier of prng to 13;
            change the adder of prng to 4399;
            seed the random number generator prng with seed;
            change the seed to seed + 1234.

    When play begins:
        initialize the random number generators.