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

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}
8192 4096 2048 1024 2048 4096 32768 1024 1024
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
449 431 859 79 409 599 53 631 673 853

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