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

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}
512 1024 65536 16384 4096 16384 16384 65536 512
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
3 677 19 907 191 53 397 173 743 607

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