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

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 16384 8192 512 32768 65536 1024 32768 512
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
523 79 271 733 79 211 631 359 53 977

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