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

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 512 512 8192 8192 1024 8192 256 512
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
197 43 229 571 631 107 43 827 541 23

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