News for hackers. Stuff that matters.
Re:SDL2 common mistakes and how to avoid them by somat on Sunday January 08, 2023 @11:37AM (#34300520)
If it's deterministic it's not random, it's a hash function. yes I know, it's called rand(). it is still a hash function(except on openbsd), just one with no standard.

http://man.openbsd.org/rand

Re:SDL2 common mistakes and how to avoid them by rollcat on Sunday January 08, 2023 @01:12PM (#34301492)
For games you don't need randomness; you need a function that returns next in a series of uniformly distributed numbers (which RNGs happen to satisfy). But more importantly, you do need determinism, for the reasons I stated above. We're calling that function "random" for the same reasons we'd call another function "dial", even though there's no telephone involved.