Quote Originally Posted by Salem View Post
Question 13.18
It might be worth checking your random function.
Some crude algorithms can be rather less random in the LSB.
I used the standard implementation of the mersenne twister.
Would that problem be solved by
Code:
bool choice =randgen()%100 < 50 ;
?
(If yes, the problem for 2 members is elsewhere )
Also, sleeping for 1ms (when the OS timeslice may be say 20ms) might not be doing what you expect.
How do I query it, in a POSIX system ?