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

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}
1024 256 32768 256 32768 256 1024 8192 8192
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
223 2 677 73 823 431 479 919 797 919

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