I am writing a program which write statistical tests in Delphi (must be Delphi) and I\'ve heard that the Random functionality is somewhat odd. You have to call randomize to
If you are seeking a way to guarantee uniqueness of random numbers with the fastest execution time, About.com has created a challenge on Fastest Unique Random Number Generator, and Patrick van Logchem's implementation has been elected as the winner.
Return random between 0..9
StrToInt(copy(FloatToStr(Random),4,1))
Note:Check FloatToStr(Random) length before use or use any other digit from the decimal part...
I couldn't resist.