Have you ever needed to generate a random number in code? whether it's for rolling a dice, or shuffling a set, this tweet thread is here for you! There's no reason that it should be easy or obvious, very experienced programmers repeat common mistakes. I did, before I learned ...
-
-
True randomness is only needed for a tiny problem domain (cryptography & related security fields) where non-experts should not be writing any new code anyway, just glue.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The risks are hugely asymmetric, scientific computing is a miniscule fraction of the code being written, and it’s reasonable to ask the domain with specific requirements to use a specific solution.
-
Yeah that's why I said not sure. I'd prefer *no* interface named plain "random", instead "reproducible_pseudorandom" and "cryptographic_random".
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.