Randomness

version 1/080522 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 2 - Seeding the generator

    To seed the random number generator (prng - a pseudorandom number generator) with (n - a number):
        change the previous value of prng to n.

    To set the multiplier of (prng - a pseudorandom number generator) to (n - a number):
        change the multiplier of prng to n.

    To set the adder of (prng - a pseudorandom number generator) to (n - a number):
        change the adder of prng to n.