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

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 65536 256 32768 4096 32768 512 4096 32768
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
107 619 3 389 151 557 163 499 563 941

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