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

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 1024 1024 2048 1024 8192 8192 512 4096
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
17 691 571 277 499 227 241 463 937 677

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