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

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 4096 4096 2048 1024 16384 256 8192 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
2 83 89 907 587 347 277 331 173 251

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




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

(c) 2003-2025 Herbert Groot Jebbink