Generates random bytes.
Number of bytes to generate
Get random bytes as a hex string.
Number of bytes to generate.
The hex string with random values.
Get random values as a base64 encoded string.
Number of bytes to generate.
If set to true, the returned string will only container letters and numbers.
The base64 encoded string of random values.
Generated using TypeDoc
Contains methods for generating random values.
Uses Web Cryptography API if available, otherwise it fallbacks to Math.random()