UNPKG

@polkadot/util-crypto

Version:
16 lines (15 loc) 365 B
/** * @name randomAsNumber * @summary Creates a random number from random bytes. * @description * Returns a random number generated from the secure bytes. * @example * <BR> * * ```javascript * import { randomAsNumber } from '@polkadot/util-crypto'; * * randomAsNumber(); // => <random number> * ``` */ export declare function randomAsNumber(): number;