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

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 1024 32768 8192 256 4096 2048 256 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
647 257 953 599 617 439 379 521 53 311

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