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

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}
16384 256 512 1024 8192 4096 256 32768 32768
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
461 71 167 757 491 383 7 523 277 383

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




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

(c) 2003-2025 Herbert Groot Jebbink