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}
37 12 18 10 35 13 49 10 42 18 36 20 30 20 37 30 15 33 32 31 30 13 18 21 41
{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}
33 20 18 31 39 25 30 12 32 27 13 16 14 22 34 44 35 48 37 23 41 42 17 11 28

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 4096 4096 65536 8192 512 4096 256 1024
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
257 271 373 7 449 541 31 839 347 977

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