all parms random randomize randomize_vs_shuffle total
There are main 3 ways for randomizing, a sequence (random), an option (randomly) and an action (randomize)
The sequence 'random'
|
HTML
|
RESULT
|
{sequence random, rows=25, minimal=10, maximal=50 } {$sequence} {/sequence}
|
30 40 35 10 19 36 14 16 46 16 46 31 17 35 45 34 43 39 27 13 34 25 46 44 23
|
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
|
30 49 29 14 50 15 42 40 45 24 32 33 37 35 48 23 25 18 22 20 36 17 11 19 34
|
The sequence option 'randomly'
Here the loop index is randomly set before the sequence is executed.
|
HTML
|
RESULT
|
{sequence power=2, rows=10, randomly, from=8, to=16} {$sequence} {/sequence}
|
256 16384 256 512 8192 256 512 65536 2048
|
{sequence prime, rows=10, randomly, to=1000 } {$sequence} {/sequence}
|
887 929 31 167 829 593 137 821 509 37
|
The sequence action 'randomize'
|
HTML
|
RESULT
|
{sequence from=10, to=20, push='mySeq'}
|
|
{mySeq} {$sequence} {/mySeq}
|
10 11 12 13 14 15 16 17 18 19 20
|
{mySeq randomize } {$sequence} {/mySeq}
|
14 13 15 10 16 18 11 17 12 19 20
|
{mySeq randomize=5} {$sequence} {/mySeq}
|
11 20 16 19 10
|
|