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}
|
48 44 40 21 34 18 49 34 17 47 42 29 38 15 18 29 10 30 12 35 34 26 26 16 44
|
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
|
32 19 29 25 49 15 37 24 34 20 14 28 23 43 35 36 11 10 50 48 45 31 18 38 42
|
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}
|
512 1024 4096 32768 8192 65536 65536 256 4096
|
{sequence prime, rows=10, randomly, to=1000 } {$sequence} {/sequence}
|
439 787 881 397 823 197 7 337 967 277
|
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}
|
20 12 11 13 10 18 17 16 19 14 15
|
{mySeq randomize=5} {$sequence} {/mySeq}
|
14 20 17 19 13
|
|