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

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}
2048 256 4096 16384 16384 65536 2048 65536 8192
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
383 23 67 397 541 379 937 7 113 107

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