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}
28 22 25 44 17 30 36 23 20 25 41 16 40 12 47 37 41 27 40 39 13 35 12 29 32
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
29 32 20 12 19 17 45 10 35 34 41 44 38 50 30 13 42 14 46 16 47 18 11 22 25

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}
16384 4096 16384 256 1024 65536 1024 2048 256
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
109 461 17 941 641 521 859 59 997 31

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