Random sort demonstration

Jacques Hausser jacques.hausser at unil.ch
Thu May 23 05:05:16 EDT 2013


Yes shuffle is better - a penchant for gambling instead of a taste of eggs ;-)

Jacques

Le 23 mai 2013 à 10:24, Dick Kriesel <dick.kriesel at mail.com> a écrit :

> 
> 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
> end shuffle
> 
> -- Dick
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel: 	++ 41 22 366 19 40
mobile:	++ 41 79 757 05 24
E-Mail:	jacques.hausser at unil.ch
*******************************************





More information about the use-livecode mailing list