better randomness
Posted: Wed Dec 30, 2009 5:23 am
I refer you to this page -
http://www.delphibasics.co.uk/RTL.asp?Name=Random
"Delphi uses a pseudo random number generator ..."
The use of system time as a seed is used in other languages also, and works well as long as the application is not generated automatically at a preset time.
I request a "Randomize" type function, or, probably easier, a way to access system time.
Now before you say "personality" check the enclosed demo.
-------------------------------
I have thought of another way that would work for what I am doing. I could have a read-in text file with a value to use as a seed, and on program closing, write-out the value plus one, so next start the seed would be different.
http://www.delphibasics.co.uk/RTL.asp?Name=Random
"Delphi uses a pseudo random number generator ..."
The use of system time as a seed is used in other languages also, and works well as long as the application is not generated automatically at a preset time.
I request a "Randomize" type function, or, probably easier, a way to access system time.
Now before you say "personality" check the enclosed demo.
-------------------------------
I have thought of another way that would work for what I am doing. I could have a read-in text file with a value to use as a seed, and on program closing, write-out the value plus one, so next start the seed would be different.