The TScRandom class implements functionality of a pseudo-random number generator. It produces a sequence of numbers that meet certain statistical requirements for randomness.
The random number generation starts from a seed value. To set the start value, use the Randomize method. If the same seed is used repeatedly, the same series of numbers is generated. Seed can be generated by using processor step counter, system timer information, information of random mouse movements or pressure of keyboard keys.
Note: Generation of a reliable starting sequence for the random-number generator is required to ensure high security level.
To improve performance, create only one TScRandom object to generate many random numbers, instead of creating a new TScRandom object to generate one random number.