The Conroy & Conroy Subroutine Library (2021.3 edition)

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

This class implements a random number generator. This is an older class provided for legacy code and should not be used in new code. Instead, use one of the other random number classes provided in the Randoms unit. 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. Note that in Python, PHP, and Javascript, this is an alias for the TSRNG32 class. The methods in the class are:

Read
int32 Generate()
function Generate : longint
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_ : longint )
Sets the seed to the specified value.

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