PAD - PHP Application Driver


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


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

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 16384 32768 65536 512 65536 1024 2048 2048
{sequence prime,   rows=10, randomly, to=1000      } {$sequence} {/sequence}
499 293 733 397 491 409 331 7 719 83

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




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

(c) 2003-2025 Herbert Groot Jebbink