PAD - PHP Application Driver


home | manual | reference | regression | sequence | develop | apps


Sequences


Concepts | Sequences | Actions | Examples | Reference

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

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}
32768 8192 65536 1024 2048 512 1024 32768 32768
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
307 151 937 757 353 587 107 971 823 619

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




home | manual | reference | regression | sequence | develop | apps

(c) 2003-2025 Herbert Groot Jebbink