TRandom

Top  Previous  Next

This is for generating pseudo random numbers, but implemented as a class so you have full control and can use it in threads too.

It is also independant of the compiler used.

 

It uses the same formula as used in Delphi:

http://en.wikipedia.org/wiki/Linear_congruential_generator