random()
Uses cryptographically strong alternative to Math.random()
. Returns a floating-point number between 0 (inclusive) and 1 (exclusive) with 52 bits of random. For generating a random integer, use generateRandomInteger()
.
Definition
function random(): number;