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 )
How do I query it, in a POSIX system ?Also, sleeping for 1ms (when the OS timeslice may be say 20ms) might not be doing what you expect.