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

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 4096 256 32768 32768 2048 65536 4096 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
971 107 857 307 349 383 353 3 229 239

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