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

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}
65536 8192 65536 8192 65536 32768 1024 256 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
683 941 661 743 751 863 137 449 7 607

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