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

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}
8192 256 8192 512 4096 2048 8192 256 32768
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
79 59 757 3 5 853 293 971 863 569

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