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

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 4096 8192 1024 256 2048 16384 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
7 103 647 503 3 709 821 607 397 457

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