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

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 4096 256 8192 8192 512 256 256 1024
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
157 953 751 937 911 179 751 997 557 181

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