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}
15 33 40 12 31 35 16 41 21 36 44 12 15 46 22 43 47 50 44 10 33 42 24 10 26
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
25 39 17 44 22 29 14 21 40 49 43 31 38 10 30 35 11 47 19 12 20 36 33 15 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}
65536 1024 8192 1024 16384 65536 32768 32768 256
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
241 577 83 211 127 17 673 409 487 3

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