The OpenD Programming Language

getReasonableDefaultGenerator

Gets a "reasonable default" random number generator, one good enough for my casual use. This is the object used by the other functions when you don't explicitly use your own generator.

It will be automatically seeded from the operating system random number pool if you don't pass one of your own.

  1. Rng getReasonableDefaultGenerator(ulong seed)
    @trusted
    getReasonableDefaultGenerator
    (
    lazy ulong seed
    )
  2. Rng getReasonableDefaultGenerator()
  3. int uniform(int min, int max)
  4. int uniform(Rng gen, int min, int max)
  5. alias randomInteger = uniform

Meta

History

Added April 17, 2025