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

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 1024 512 512 1024 256 16384 8192
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
887 797 379 271 353 409 211 137 97 821

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