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

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}
256 16384 65536 4096 2048 4096 32768 2048 8192
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
701 421 523 59 5 257 997 701 17 313

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