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

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}
65536 32768 65536 1024 16384 256 8192 4096 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
397 367 73 653 563 331 683 71 761 179

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