The Conroy & Conroy Subroutine Library (2021.3 edition)

TSRNG32
What: function
File: Randoms
Layer: 1
Platforms: C++, C#, Javascript, Pascal (Object), PHP, Python

This class implements a random number generator that repeats every 2^32 values. All psuedorandom number generation involves a seed value which indicates the starting position in the random sequence. Setting the seed to a specific value allows a sequence to be repeated. The methods in the class are:

Read
int32 Generate()
function Generate : cardinal
Generates a new random value and returns it.

Read
void Randomize()
procedure Randomize
Sets the seed to a random value.

Read
void Set_X( int32 _X_ )
procedure Set_X( _X_ : cardinal )
Sets the seed to the specified value.

Read
int32 X()
function X : cardinal
Returns the current seed value.