Class RandomNumberGenerator

Class Documentation

class RandomNumberGenerator

Random number generator based on threefry.

Public Functions

RandomNumberGenerator()

Default constructor. Use this to get truly random behavior.

RandomNumberGenerator(int seed)

Constructor where a seed is supplied.

Use this here you need to replicate results, as in tests.

double Rand()

Generates a random number with the default distribution.