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

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 32768 256 32768 512 1024 256 512 65536
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
271 103 251 733 773 487 439 601 461 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}
11 16 18 19 10 12 20 13 17 14 15
{mySeq randomize=5} {$sequence} {/mySeq}
14 20 18 13 19