@types/secure-random-double
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/secure-random-double

Summary

This package contains type definitions for secure-random-double (https://github.com/emilbayes/secure-random-double).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-double.

index.d.ts

export = secureRandomDouble;

/**
 * Generate doubles (`number`) in the range `[0, 1)`, with all points being equidistant and unbiased.
 *
 * @example
 * import double = require('secure-random-double')
 *
 * const n = double()
 */
declare function secureRandomDouble(): number;

declare namespace secureRandomDouble {
    /** Number of representable points. */
    const POINTS: 4503599627370496n;
    /** The basis representation of `1`. */
    const BASE: 10000000000000000000000000000000000000000000000000000n;
    /** Distance between consecutive points. */
    const DISTANCE: 2220446049250313080847263336181640625n;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

/@types/secure-random-double/

    Package Sidebar

    Install

    npm i @types/secure-random-double

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • types