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 ...
Statistically a 128-bit LCG with just upper 32 bits used is pretty damn decent.
-
-
And orders of magnitude smaller than MT in state size, code size, & conceptual complexity.
-
No argument here.
End of conversation
New conversation -
-
-
Truncated PRNGs in general are very good, same goes for Xorshift and PCG. Increases the difficulty of prediction, too.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.