pinkstone.co.uk
How to generate a random number in iOS
We can use the C function rand() for this: [crayon-5df7701443e5c963048274/] This generates an integer between 1 and 10. Alternatively you can use the arc4random function: [crayon-5df7701443e6462164…