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

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 16384 256 65536 256 32768 256 512 16384
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
17 709 241 127 281 101 67 683 307 79

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