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}
13 26 50 23 28 27 46 38 10 12 49 29 34 10 22 26 13 49 24 29 43 11 45 26 34
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
31 16 11 39 22 15 50 42 34 38 20 30 21 24 49 12 32 41 14 17 37 13 45 29 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}
2048 512 256 16384 512 32768 1024 4096 4096
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
167 991 89 467 983 17 911 673 997 859

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