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}
|
36 44 11 48 27 14 43 32 34 36 47 33 24 17 43 41 19 21 36 16 30 38 40 48 11
|
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
|
18 38 24 12 48 46 14 11 25 20 21 41 15 50 33 34 37 22 27 17 19 13 16 26 29
|
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}
|
65536 256 16384 65536 32768 16384 16384 4096 65536
|
{sequence prime, rows=10, randomly, to=1000 } {$sequence} {/sequence}
|
677 313 149 659 953 347 73 523 293 887
|
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}
|
17 20 18 15 10 14 12 11 13 19 16
|
{mySeq randomize=5} {$sequence} {/mySeq}
|
20 16 17 12 18
|
|