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

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}
512 2048 2048 512 4096 32768 32768 512 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
787 809 883 73 199 311 421 317 599 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}
19 16 11 12 13 20 17 10 14 15 18
{mySeq randomize=5} {$sequence} {/mySeq}
15 17 12 11 10