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

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 32768 4096 32768 4096 16384 16384 256
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
71 523 739 467 373 2 997 677 409 823

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