Returns the next random 32-bit unsigned integer.
Returns the next random 64-bit unsigned integer as a bigint.
Fills the given Uint8Array with random bytes.
Returns a Uint8Array of random bytes of the given size.
Fills the given Uint8Array with random bytes.
A random number generator that can be used as a source of cryptographically-strong randomness.
Uses the Web Crypto API (crypto.getRandomValues) which is available in both browsers and Node.js >= 15.