You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I want to get say 20 different random numbers "at the same time".
My problem - I think - is the seed (MathSrand(GetTickCount())). Even if I use some pause between the iterations, the result numbers are not so random as I wish.
If the desired range is between 0 - 1, then I got this sequence after 20 iterations using Sleep(500) between them: 11111100000000001111. My expectation would be eg.: 11010001011011010100.
So, is it possible to get a "good-looking" random number series without using a long pause between the iterations?
Thanks