On May 22, 2013, at 10:59 AM, Chris Sheffield <[email protected]> wrote:
> sort lines of myVar by random(the number of lines of myVar)
Hi, Chris.
I suggest you try this:
sort lines of myVar by _random( the number of lines in myVar, each )
with this:
private function _random pUpperLimit -- note: ignore other parameters
return random( pUpperLimit )
end _random
In my test with a million iterations each of the six combinations had almost
exactly its fair share. Does that work for you?
-- Dick
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode