Some thoughts which might be helpful or not:
-
The seed randomization can be suppressed for debugging purposes by setting the environment variable SWIFT_DETERMINISTIC_HASHING=1, compare PSA: The stdlib now uses randomly seeded hash values - #3 by lorenteyEdit: That is nonsense, I mixed up two different topics, sorry for that. See @Alejandro's post below. - Howard Lovatt suggested a seedable random number generator here: SE-0202: Random Unification - #62 by hlovatt.
- GamePlayKit offers some (seedable) random number generators.