3 ms·
I think I'm missing something. Why not call a PRNG for each array element? Seems like you could do this in 4 lines of code.
by pubby 4y ago
I think I'm missing something. Why not call a PRNG for each array element? Seems like you could do this in 4 lines of code.
- foota 4y ago"I couldn’t rely on simple randomness since terrain generation has to be deterministic, especially for multiplayer games." You want the results to be repeatable. Now you could seed with something, but this has tradeoffs (e.g., you have to produce the same order of elements in order to get the same values out)