How can I get a Random quote (text) from a database (CoreData) of quotes? (iPhone) -


I want to develop an app that gives a random bid every time you change the page. And I have to put 1,000 quotation marks in the database. How can I get a random quote? Arc4random?

To generate a random number for you to answer a method - a random number Method, and there is an index in DB for each bid, so that you can query a quote with a random number of direct calculations.

In addition to directly detecting the core data (without any actual query) to the category of random numbers you want to ask.


Comments