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

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 32768 16384 65536 65536 32768 8192 32768 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
149 877 743 937 419 911 937 797 743 563

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