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 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:random}
19 29 27 35 28 29 44 15 26 32 19 20 44 29 11 10 17 44 14 28 25 25 46 38 18
{sequence:random rows=25, minimal=10, maximal=50, unique      } {$sequence} {/sequence:random}
21 20 45 42 10 14 19 47 48 44 34 15 26 30 24 40 35 22 31 11 43 41 38 29 50
{sequence:random rows=15, minimal=10, maximal=50, increment=5 } {$sequence} {/sequence:random}
10 25 50 40 50 25 30 25 40 50 40 20 10 15 40

The sequence option 'randomly'

Here the loop index is randomly set before the sequence is executed.

HTML RESULT
{sequence loop,    rows=10, randomly, from=10, to=20} {$sequence} {/sequence}
16 11 19 12 19 12 19 17 13 14
{sequence power=2, rows=10, randomly, from=8,  to=16} {$sequence} {/sequence}
16384 65536 32768 8192 1024 256 256 256 4096
{sequence prime,   rows=10, randomly, to=1000       } {$sequence} {/sequence}
181 337 487 3 7 73 701 419 449 31

HTML RESULT
{sequence rows=4, randomly } 
{$sequence}
{/sequence}
9006770787962097094 9189385232672984067 8568302783861548763 2389958847992081307
{sequence rows=4, randomly, from=10000000000, increment=10000000000} 
{$sequence}
{/sequence}
115015010000000000 4508244150000000000 7558561830000000000 7440655940000000000

HTML RESULT
{sequence from=10, to=20, push='mySeq'}
{mySeq randomly}         {$sequence} {/mySeq}
16 11 17 14 15 14 13 11 12 15 13
{mySeq randomly, unique} {$sequence} {/mySeq}
14 17 16 11 20 12 15

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

The sequence 'random' - other usages of it

HTML RESULT
{sequence random='75%', from=1, to=1000, push='myRandom2'}
{myRandom2 action='count'} {$sequence} {/myRandom2}
782

HTML RESULT
{sequence random=4, from=1, to=1000, push='myRandom'}
{myRandom action='count'} {$sequence} {/myRandom}
254

Yes, it works

HTML RESULT
{sequence random, randomly, randomize, maximal=1000} {$sequence} {/sequence}
624 344 966 532 839 172 539 606 753 73




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

(c) 2003-2025 Herbert Groot Jebbink