|
home | manual | reference | regression | sequence | develop | apps |
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}35 36 13 49 16 34 42 28 38 14 26 15 42 18 47 32 36 23 10 11 40 39 33 24 43{sequence:random rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence:random}49 35 48 17 20 22 25 13 41 45 15 30 16 24 21 36 27 14 50 37 11 26 34 43 47{sequence:random rows=15, minimal=10, maximal=50, increment=5 } {$sequence} {/sequence:random}10 10 35 10 50 45 30 40 10 30 45 10 25 25 30The 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}19 19 10 20 10 13 10 20 15 13{sequence power=2, rows=10, randomly, from=8, to=16} {$sequence} {/sequence}512 2048 65536 1024 8192 512 16384 512 512{sequence prime, rows=10, randomly, to=1000 } {$sequence} {/sequence}337 631 853 193 523 541 739 947 761 3
HTML RESULT {sequence rows=4, randomly }
{$sequence}
{/sequence}4504243630815060686 1758725144261884295 1424521826820802093 6003104630805918430{sequence rows=4, randomly, from=10000000000, increment=10000000000}
{$sequence}
{/sequence}832831310000000000 5637609040000000000 4807981900000000000 8613656890000000000
HTML RESULT {sequence from=10, to=20, push='mySeq'}{mySeq randomly} {$sequence} {/mySeq}15 16 16 17 14 19 14 11 18 17 11{mySeq randomly, unique} {$sequence} {/mySeq}17 11 12 19 16 13 20 15The 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}15 12 10 20 16 18 14 11 19 17 13{mySeq randomize=5 } {$sequence} {/mySeq}12 19 10 11 18{mySeq randomize=5, duplicates } {$sequence} {/mySeq}11 12 19 10 10{mySeq randomize=5, orderly } {$sequence} {/mySeq}11 12 16 18 19{mySeq randomize=5, orderly, duplicates } {$sequence} {/mySeq}13 14 15 16 20{mySeq randomize=25 } {$sequence} {/mySeq}19 19 20 18 15 11 15 18 17 19 18 13 12 11 18 15 12 18 20 20 13 17 15 16 15{mySeq randomize=25, orderly } {$sequence} {/mySeq}11 11 11 12 12 12 12 13 14 14 15 15 15 16 17 18 18 18 18 19 19 19 19 20 20{mySeq randomize=25, atLeastOnce } {$sequence} {/mySeq}16 10 20 20 20 18 17 15 18 16 14 11 16 15 13 15 11 11 14 16 19 13 18 12 19{mySeq randomize=25, atLeastOnce, orderly } {$sequence} {/mySeq}10 10 10 10 10 11 12 13 14 15 15 15 15 15 16 16 16 16 17 17 18 18 19 19 20The sequence 'random' - other usages of it
HTML RESULT {sequence random='75%', from=1, to=1000, push='myRandom2'}{myRandom2 action='count'} {$sequence} {/myRandom2}736
HTML RESULT {sequence random=4, from=1, to=1000, push='myRandom'}{myRandom action='count'} {$sequence} {/myRandom}244Yes, it works
HTML RESULT {sequence random, randomly, randomize, maximal=1000} {$sequence} {/sequence}51 437 867 617 281 808 796 642 798 346
|
home | manual | reference | regression | sequence | develop | apps |
(c) 2003-2025 Herbert Groot Jebbink