Random sort demonstration

Robert Brenstein rjb at robelko.com
Thu May 23 12:37:27 EDT 2013

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)

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.


More information about the Use-livecode mailing list