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

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}
32768 1024 32768 4096 32768 8192 16384 16384 1024
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
109 563 47 571 109 523 389 353 41 263

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