Random sort demonstration
dick.kriesel at mail.com
Thu May 23 03:24:03 CDT 2013
On May 23, 2013, at 12:41 AM, Jacques Hausser <jacques.hausser at unil.ch> wrote:
> and something like
> "scramble lines of myVar", instead of "sort lines of myVar random(xxx)". Could be a command using the same function behind the scene, with the max integer as parameter to avoid prevalence of "the first" in the case of repetitions. And it is semantically clearer than "sort random".
Good idea, Jacques. How about this?
command shuffle @rLines
sort rLines by random( 4294967295 ) -- note: 2^32-1
More information about the use-livecode