Randomize()
Seeds the pseudo-random number generator with an integer number, ensuring repeatable number patterns.
Randomize( number=number, algorithm=string );
Returns: Number
Argument | Description |
---|---|
number
number,
required
|
a number |
algorithm
string,
optional
|
The algorithm to use to generated the random number. |
Examples
writeDump(Randomize(8,'SHA1PRNG'));
writeDump(Randomize(10) GTE 0 and Randomize(10) LTE 1);
randomize(55);
loop index="i" from="1" to="3"{
writeDump(rand());
}
See also
- Cryptography
- Numbers
- Rand()
- RandRange()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)