|
home | manual | reference | regression | sequence | develop | apps |
Sequences - Xref - Options - unique
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}26 13 38 25 41 24 12 32 26 30 34 34 17 12 31 18 30 17 24 12 19 29 23 18 29{sequence random, rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence}22 13 30 20 17 39 37 25 43 27 35 15 28 12 40 18 14 45 10 33 48 26 24 36 29The 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}32768 2048 2048 256 256 512 256 256 256{sequence prime, rows=10, randomly, to=1000 } {$sequence} {/sequence}937 239 331 709 61 163 883 691 317 661The 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 10 20 19 14 18 12 13 11 16 15{mySeq randomize=5} {$sequence} {/mySeq}14 16 12 13 10
App: sequence Page: random/random
The sequence 'random'
HTML RESULT {sequence:random rows=25, minimal=10, maximal=50 } {$sequence} {/sequence:random}18 19 38 37 39 44 29 26 22 46 50 37 18 47 35 23 39 17 39 40 50 15 11 16 46{sequence:random rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence:random}37 35 44 26 22 27 38 39 47 12 25 16 36 33 11 21 20 41 15 31 28 48 24 10 43{sequence:random rows=15, minimal=10, maximal=50, increment=5 } {$sequence} {/sequence:random}25 30 30 25 30 25 45 40 45 45 20 10 20 10 10
App: sequence Page: random/randomize_vs_shuffle
Random vs shuffle
HTML RESULT {sequence 'A..Z'}
{$sequence}
{/sequence}A B C D E F G H I J K L M N O P Q R S T U V W X Y Z{sequence 'A..Z', shuffle}
{$sequence}
{/sequence}O A X C T H Q Z D W J G M Y U R F E S N B L P V I K{sequence 'A..Z', shuffle, sort}
{$sequence}
{/sequence}A B C D E F G H I J K L M N O P Q R S T U V W X Y Z{sequence 'A..Z', random}
{$sequence}
{/sequence}K S H J J U H V R I E K E B C L R V N F L X G R Y C{sequence 'A..Z', random, sort}
{$sequence}
{/sequence}A A B C D D E E F F G J L N O P Q R S T U W X X Y Z
HTML RESULT {sequence 'A..Z', random, unique, sort}
{$sequence}
{/sequence}A D E F G H I K M N Q T V X Y Z{sequence 'A..Z', random, dedup, sort}
{$sequence}
{/sequence}B D E F G H I J K M N P Q R T W X Z{sequence 'A..Z', reverse}
{$sequence}
{/sequence}Z Y X W V U T S R Q P O N M L K J I H G F E D C B A{sequence 'A..Z', reverse, sort}
{$sequence}
{/sequence}A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
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}30 22 45 39 28 32 40 19 10 19 15 28 36 11 19 16 35 25 32 36 12 23 35 11 10{sequence:random rows=25, minimal=10, maximal=50, unique } {$sequence} {/sequence:random}20 34 40 23 10 45 25 32 29 15 50 11 19 33 18 37 14 26 17 47 43 30 16 12 42{sequence:random rows=15, minimal=10, maximal=50, increment=5 } {$sequence} {/sequence:random}40 40 40 20 45 20 25 45 15 40 30 40 30 45 35The 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 16 11 19 11 12 11 17 13 12{sequence power=2, rows=10, randomly, from=8, to=16} {$sequence} {/sequence}16384 4096 1024 512 16384 16384 1024 32768 65536{sequence prime, rows=10, randomly, to=1000 } {$sequence} {/sequence}257 379 227 877 43 607 281 617 659 439
HTML RESULT {sequence rows=4, randomly }
{$sequence}
{/sequence}3637242521651622818 994296985366794850 8505984611474240352 6933123452105734666{sequence rows=4, randomly, from=10000000000, increment=10000000000}
{$sequence}
{/sequence}7106606470000000000 6560121690000000000 1431438100000000000 6265880740000000000
HTML RESULT {sequence from=10, to=20, push='mySeq'}{mySeq randomly} {$sequence} {/mySeq}11 17 13 18 13 19 11 20 13 17 15{mySeq randomly, unique} {$sequence} {/mySeq}18 20 14 13 12 16The 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 13 10 11 20 12 17 18 19 14 16{mySeq randomize=5 } {$sequence} {/mySeq}11 17 14 15 10{mySeq randomize=5, duplicates } {$sequence} {/mySeq}19 13 14 19 11{mySeq randomize=5, orderly } {$sequence} {/mySeq}10 11 13 14 18{mySeq randomize=5, orderly, duplicates } {$sequence} {/mySeq}10 10 13 14 19{mySeq randomize=25 } {$sequence} {/mySeq}17 20 10 20 11 19 15 11 10 13 19 20 15 17 18 17 18 15 19 16 11 17 11 13 12{mySeq randomize=25, orderly } {$sequence} {/mySeq}10 11 11 11 12 13 13 15 17 17 17 17 17 17 17 18 18 18 18 19 19 19 20 20 20{mySeq randomize=25, atLeastOnce } {$sequence} {/mySeq}19 19 18 10 17 13 16 12 16 20 10 11 20 11 11 11 14 12 19 15 17 18 11 14 17{mySeq randomize=25, atLeastOnce, orderly } {$sequence} {/mySeq}10 10 10 11 11 12 12 12 13 13 13 13 13 14 15 16 16 17 18 18 18 19 19 20 20The sequence 'random' - other usages of it
HTML RESULT {sequence random='75%', from=1, to=1000, push='myRandom2'}{myRandom2 action='count'} {$sequence} {/myRandom2}748
HTML RESULT {sequence random=4, from=1, to=1000, push='myRandom'}{myRandom action='count'} {$sequence} {/myRandom}256Yes, it works
HTML RESULT {sequence random, randomly, randomize, maximal=1000} {$sequence} {/sequence}280 314 137 181 834 762 304 208 164 600
|
home | manual | reference | regression | sequence | develop | apps |
(c) 2003-2025 Herbert Groot Jebbink