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}
29 29 47 50 44 19 31 25 14 27 39 42 38 16 23 29 17 25 31 35 19 24 16 38 10
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
35 27 41 15 18 10 26 48 50 38 46 13 33 24 36 12 20 40 16 25 31 44 49 37 47

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}
16384 32768 256 65536 8192 1024 512 256 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
823 521 971 683 73 7 887 619 233 227

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