version 1/080522 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous

  • Chapter: Reading values from the PRNG

    You can read any pseudorandom number generator using the following syntax:

        the next random number of (name of generator)

    However, accessing the main pseudorandom number generator is somewhat easier:

        the next random number

    is enough to access it.

    If you wish to read the last random number generated, you can use

        the previous random number of (name of generator)


        the previous random number

    to access them.