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

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 16384 8192 512 512 1024 65536 1024 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
71 557 113 613 97 719 859 571 827 967

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