Select a range of rows from a table at random is very simple, just use ORDER BY RAND() in our select statement. Some also prefer to use different techniques, ranging from the use of PHP to write the select special. The reason is that ORDER BY RAND() is slow because MySQL creates a temporary table with all the results and then assigns each row a random index, returning a result ordered (random)!
Articles Tagged 'Random'
MySQL: select randomly with pagination
Very short snippet: Actionscript extend an array by the method shuffle ()
I had already talked about how to implement the method shuffle () in Javascript and Actionscript . I realized, tuttaavia, have not emphasized that Actionscript is able to extend, in the same manner as JavaScript, its object Array :
Very short snippet: shuffle () in Javascript and Actionscript
In PHP there is a handy feature called shuffle() which allows for mixing an array (see Very short trick: take random elements from an array in PHP ). An excellent version of the Javascript I found here . Below the code slightly revised:






Latest Comments
Giovambattista Fazioli : @ Nik: I'm happy! Good luck then!
Nik : I have Monday examining information on java, thanks to me you have been very useful, the book I was unclear ...
Mark : Thank you very much, I've lit
I solved it by setting [cc_objc] / / OptionViewController.m - ...
Giovambattista Fazioli : @ Mark: I suggest you think a more correct approach. If you run the subclass of the tab ...
louis : very clear and simple I have to admit that writing a pa hardly use delegates created by ...