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

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 512 65536 8192 512 16384 2048 16384 256
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
31 653 137 307 503 503 317 547 89 397

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