3 ms·
> That is application dependent. If you’re coding a roulette wheel no, if you’re coding an E2E chat yes. Or a prominent example are games. The whole idea of s
by tetha 2y ago
> That is application dependent. If you’re coding a roulette wheel no, if you’re coding an E2E chat yes.
Or a prominent example are games.
The whole idea of sharing "cool minecraft worlds" or "seeds for cool runs in Balatro/Slay the Spire/..." are possible due to careful use of PRNGs in those games for world generation.
In fact, games often run at least 2 RNGs and possibly more in a multiplayer setting involving networking and encryption of that. You want some kind of "World Generation seed", which is usually a PRNG players can enter funny seeds like "CAFEBABE" into to share worlds. However, you want to protect this PRNG, because otherwise player action changes the world generation.
So you end up with more RNGs of some kind, for example for AI actions, particle movements. And depending on how these RNGs are used, you might link different subsystems together, allowing AI manipulation and such. It's a very interesting thing to think about and design.