Reference > AmiScript > Methods
rand()
Definition
Double rand()
Description
Returns a random Double between 0.0 (inclusive) and 1.0 (exclusive), Note: this random is not secure.
Examples
| Double r1 = rand(); // r1 == 0.15129200464674597
Double r2 = rand(); // r2 == 0.3939997914462844
Double r3 = rand(); // r3 == 0.3940549818488742
|