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

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}
1024 65536 2048 512 4096 2048 32768 2048 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
97 757 823 761 827 859 233 229 563 181

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