Examples

Examples ! Many are generated and do not always make sence,
the examples from 'specials' are hand crafted and gives a good view of what the Sequences subsystem of PAD can do.



sequences | specials | random | play/single | play/double | keepRemoveFlag

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 32 10 44 23 31 34 19 27 36 21 30 25 34 48 11 10 16 35 34 40 31 19 37 30
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
17 22 34 28 26 13 14 40 23 44 37 24 30 48 29 12 25 21 15 49 46 31 35 33 43

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 32768 65536 4096 4096 256 8192 65536 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
113 883 443 251 277 151 941 821 587 167

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}
19 11 20 17 15 18 10 13 16 14 12
{mySeq randomize=5} {$sequence} {/mySeq}
11 16 19 13 18