PAD - PHP Application Driver


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


Sequences - Xref - Options - randomly


Concepts | Sequences | Actions | Examples | Reference

reference2


App: sequence Page: random/all

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

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 512 8192 16384 32768 2048 65536 65536 4096
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
239 3 883 131 241 79 809 379 173 131

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


App: sequence Page: random/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}
49 43 13 38 27 24 37 35 37 20 28 13 25 10 33 45 50 43 19 27 39 40 50 10 43
{sequence:random rows=25, minimal=10, maximal=50, unique      } {$sequence} {/sequence:random}
18 30 12 16 13 41 33 37 48 49 20 19 14 36 40 26 38 21 44 42 43 11 34 45 10
{sequence:random rows=15, minimal=10, maximal=50, increment=5 } {$sequence} {/sequence:random}
25 50 25 25 40 25 10 25 25 50 35 20 25 30 45

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}
11 17 16 19 20 10 14 18 17 20
{sequence power=2, rows=10, randomly, from=8,  to=16} {$sequence} {/sequence}
32768 4096 2048 4096 1024 32768 8192 2048 256
{sequence prime,   rows=10, randomly, to=1000       } {$sequence} {/sequence}
281 43 43 373 7 5 67 149 337 71

HTML RESULT
{sequence rows=4, randomly } 
{$sequence}
{/sequence}
3989751693597948667 5815404715469073984 2001980420447330891 4617077396962593256
{sequence rows=4, randomly, from=10000000000, increment=10000000000} 
{$sequence}
{/sequence}
2080951470000000000 1652022750000000000 4455271260000000000 6260904710000000000

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

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

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

Yes, it works

HTML RESULT
{sequence random, randomly, randomize, maximal=1000} {$sequence} {/sequence}
215 868 277 440 40 571 168 220 629 37




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

(c) 2003-2025 Herbert Groot Jebbink