On 23.05.2013 at 9:51 Uhr -0500 Geoff Canyon apparently wrote:
To Dar's point, here the stable sort means that you should never use this
to get a random sort:

sort lines of someContainer by random(the number of lines of someContainer)

You are almost guaranteed to get less than random results. Instead always
use something like

sort lines of someContainer by random(999999999)

gc

I wonder why nobody suggests adding "numeric" parameter to random sorts like above. After all, the sort column is a number but without that parameter is sorted as ascii text not numeric value.

Robert

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to