shuffrand
Version:
Cryptographically secure randomness and shuffling — with soul.
36 lines (35 loc) • 1.17 kB
TypeScript
export declare const Constants: {
readonly MAX_SAFE_INT: number;
readonly MIN_SAFE_INT: number;
readonly MAX_SAFE_DOUBLE: 1000000000000000;
readonly MIN_SAFE_DOUBLE: -1000000000000000;
readonly UINT32_MAX_VALUE: 4294967295;
readonly UINT32_RANGE: 4294967296;
readonly MAX_FRACTIONAL_DIGITS: 15;
readonly MIN_FRACTIONAL_DIGITS: 1;
readonly MAX_ATTEMPTS_TO_GENERATE_NUM: 30;
/**
* String containing all digit characters (0-9).
*/
readonly DIGITS: "0123456789";
/**
* String containing all lowercase English alphabet characters (a-z).
*/
readonly LATIN_LOWERCASE_LETTERS: "abcdefghijklmnopqrstuvwxyz";
/**
* String containing all uppercase English alphabet characters (A-Z).
*/
readonly LATIN_UPPERCASE_LETTERS: string;
/**
* String containing all English alphabet characters (a-z, A-Z).
*/
readonly LATIN_LETTERS: string;
/**
* String containing all alphanumeric characters (a-z, A-Z, 0-9).
*/
readonly ALPHANUMERIC_CHARS: string;
/**
* String containing all hexadecimal characters (0-9, a-f).
*/
readonly HEX_CHARS: string;
};