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

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 8192 16384 32768 65536 256 32768 8192 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
739 643 331 757 487 967 233 577 181 2

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