Skip to content
Reference > Methods

randSec()

Definition

Double randSec()

Description

Returns a random Double between 0.0 (inclusive) and 1.0 (exclusive), this is secure.

Examples

1
2
3
Double r1 = randSec(); // r1 == 0.6683691144270135
Double r2 = randSec(); // r2 == 0.6823602118959335
Double r3 = randSec(); // r3 == 0.5374263677614503