4 ms·
That is a legitimate need, but it should not be the default. Another example of when you need it, is games. I want to store in the game state, that on Day 32 o
by crdrost 2y ago
That is a legitimate need, but it should not be the default.
Another example of when you need it, is games. I want to store in the game state, that on Day 32 of being in this cave, there is randomly a cache of diamonds if you mine the east wall. If I generate this random number dynamically, then I permit save-scumming behaviors which may distract from the artistic points of my game. So I basically want a random seed and a hash function, hashing (seed, day, activity, location, attempt_number) to see if something is successful.