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

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}
32768 32768 1024 512 16384 2048 4096 32768 512
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
307 643 79 919 181 593 997 859 31 7

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