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}
16 23 19 44 32 21 13 46 30 12 48 50 11 46 49 46 33 31 29 15 45 21 22 16 17
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
30 15 50 31 43 19 35 23 10 28 26 13 21 36 40 24 38 34 49 44 25 29 45 32 48

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}
8192 256 1024 16384 256 65536 1024 256 32768
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
97 947 419 859 661 283 457 643 733 239

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