Random Numbers in Swift 5

Does any body knows if GameplayKit can generate true random numbers? Does swift 5 has any function to create true random numbers?

Thank you!

True random numbers, no. Even with GameplayKit’s random number generators you’ll always get pseudo random numbers (which are good enough in most cases). For true random numbers you’ll have to use the cryptography frameworks.

1 Like

Where does one find this cryptography frameworks ??

Thank you