The Conroy & Conroy Subroutine Library (2021.3 edition)

TSRNG64
What: function
File: Randoms
Layer: 1
Platforms: C++, C#, Javascript, Pascal (Delphi, FPC), PHP, Python

This class implements a random number generator that repeats every 2^64 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. Note that in Python, PHP, and Javascript, this is an alias for the TSRNG32 class. The methods in the class are:

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

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

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

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