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}
37 24 40 50 33 34 35 36 12 41 46 39 15 38 33 40 19 37 43 48 43 35 30 37 24
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
43 50 30 49 33 40 39 47 16 20 19 48 46 31 12 38 25 34 21 14 24 44 11 23 10

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 2048 2048 1024 2048 2048 1024 256
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
499 907 149 701 331 31 373 101 947 271

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