|
|
|
|
|
by ThomasWinwood
1959 days ago
|
|
This is probably a hot take, but I don't think standard libraries should contain a random number generator. There is no globally correct choice of PRNG algorithm. If you need randomness, you should ask what kind of randomness - cryptography wants secure, Monte Carlo methods want fast, games can often benefit from N-dimensional equidistribution, etc. - and find a library specialised for that use case. A standard library function that nobody uses because there's always a better alternative elsewhere is a bad standard library function. |
|