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}
21 12 22 48 50 23 42 49 43 39 26 31 20 50 17 46 42 11 33 22 33 17 39 41 37
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
41 46 42 15 33 16 17 50 10 32 27 40 38 39 23 36 49 12 31 13 18 29 24 44 43

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 16384 2048 8192 16384 32768 256 2048 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
307 31 5 103 317 937 661 653 907 433

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