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

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 4096 4096 1024 512 65536 1024 16384 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
269 929 883 557 769 571 953 659 311 809

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