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

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}
4096 512 4096 1024 8192 8192 65536 32768 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
937 521 503 349 107 941 167 293 271 83

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