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

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 8192 16384 2048 16384 256 2048 1024 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
173 233 563 839 191 827 797 563 811 673

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