3 ms·
what's with the random number generation at the start? how does rand() + 3*rand() improve on just rand()?
by andrewcooke 15y ago
what's with the random number generation at the start? how does rand() + 3*rand() improve on just rand()?
- mootothemax 15y agoThere's a great series of answers to this on StackOverflow: http://stackoverflow.com/questions/3956478/understanding-randomness http://stackoverflow.com/questions/3956478/understanding-ran... In short: doing things like this actually reduces the randomness of the end result.