How to seed the Int.random method call in Swift?

See https://developer.apple.com/documentation/swift/systemrandomnumbergenerator

SystemRandomNumberGenerator is automatically seeded. If you want to use your own seeded RNG, you’ll have to implement one yourself, conforming to the RandomNumberGenerator protocol.

Leave a Comment