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

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 8192 1024 2048 32768 32768 512 16384 1024
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
487 379 3 409 257 103 67 83 739 281

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




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

(c) 2003-2025 Herbert Groot Jebbink