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

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 512 2048 65536 16384 65536 16384 256 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
479 541 31 491 457 701 293 137 877 419

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