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 25 23 32 36 16 35 14 30 22 18 18 19 11 37 38 37 18 22 24 18 36 12 27 42
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
34 45 12 36 16 20 25 31 19 38 26 33 17 23 40 30 49 28 48 10 43 50 14 11 22

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 32768 16384 8192 1024 2048 16384 512 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
509 293 797 773 941 211 863 29 773 443

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