3 ms·
"bad" for what purpose? The linear congruent stuff and Mersenne twisters, for example, are leaps and bounds better than a typical rand() implementation, and ve
by ska 9y ago
"bad" for what purpose? The linear congruent stuff and Mersenne twisters, for example, are leaps and bounds better than a typical rand() implementation, and very appropriate for many uses.
- gcp 9y agoSure, but we have generators now that are both faster and better, so there's no point in using the standard ones, aside for convenience.
- ska 9y agoaside for convenience. You say that as if it is a small thing. Convenience, lack of additional code to maintain, consistency across platforms - for many projects these things will easily trump any algorithmic improvements from using something else.