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}
40 44 14 37 18 11 49 35 23 19 35 24 38 48 35 13 18 30 29 28 40 28 42 43 19
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
18 14 44 16 19 37 10 39 34 40 36 26 22 35 43 31 17 21 48 32 27 29 41 50 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}
16384 512 4096 512 256 4096 256 512 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
47 89 103 13 941 977 223 5 229 67

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