|
Post by regina on Jul 16, 2021 8:45:50 GMT
Hi,
I'd like to report a problem and the solution that I found.
I use the set array function, first set range, followed by set shuffle:
task set_order_test set &&prime_order range 1 5 set &&prime_order shuffle
This works fine for a short array as in the example above. For long arrays, however, the shuffle function does not produce a completely random array.
I solved this issued by repeating the shuffle function several times:
task set_order_test set &&prime_order range 1 80 set &&prime_order shuffle set &&prime_order shuffle set &&prime_order shuffle set &&prime_order shuffle set &&prime_order shuffle set &&prime_order shuffle set &&prime_order shuffle
set &&prime_order shuffle
According to my impression, a single shuffle functions works prorperly for up to 10 items.
If you know a more elegant solution, let me know.
Thank you Regina
|
|