How can we check if the number generated through
I am trying to generate a unique number in between 0 to 10.
randomNumber = arc4random() % 10;
is unique or not??
i am able to generate a random number, but not able to check,whether its unique or not?
Thanks
To avoid duplication, refer a following random number generation code. When you run the following code also does not overlap any number. If you mean you want it unique.