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

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 4096 32768 32768 16384 32768 2048 256 1024
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
359 823 353 131 283 787 853 337 59 173

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