UNPKG

365 BTypeScriptView Raw
1/**
2 * @name randomAsNumber
3 * @summary Creates a random number from random bytes.
4 * @description
5 * Returns a random number generated from the secure bytes.
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { randomAsNumber } from '@polkadot/util-crypto';
11 *
12 * randomAsNumber(); // => <random number>
13 * ```
14 */
15export declare function randomAsNumber(): number;