The OpenD Programming Language

Rng

A simple generic interface to a random number generator.

Members

Functions

next
ulong next()

Get the next number in the sequence. Some may not actually use all 64 bits of the return type.

seed
void seed(ulong delegate() getEntropy)

Seeds the generator, calling the delegate zero (if it is a true rng), one, or more times to get all the state it needs.

Meta