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

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}
2048 65536 2048 65536 2048 65536 8192 8192 256
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
631 61 907 271 17 547 73 67 607 953

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