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

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 256 32768 65536 65536 2048 512 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
137 331 193 179 557 419 419 107 977 691

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