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

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}
256 8192 16384 8192 32768 32768 8192 8192 32768
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
563 191 31 827 431 457 593 907 139 701

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