I have an iPhone application in which I need to give users a new randomly-generated id. How can I generate a random number in the range 1 to 1000?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the following code to find random value in iPhone application.
In general you can find the random numbers for integer only. If you need any more help then let me know.