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}
46 37 34 24 12 31 39 15 45 44 39 43 19 43 23 30 49 24 19 45 48 36 27 21 50
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
17 23 46 24 21 28 12 38 10 25 32 22 13 43 41 14 39 11 42 16 44 49 48 37 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}
2048 512 16384 1024 4096 8192 2048 65536 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
431 947 229 563 277 863 337 137 523 563

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