1.0.3 • Published 6 months ago

@types/random-normal v1.0.3

Weekly downloads
39
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/random-normal

Summary

This package contains type definitions for random-normal (https://github.com/mock-end/random-normal).

Details

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

index.d.ts

// Type definitions for random-normal 1.0
// Project: https://github.com/mock-end/random-normal
// Definitions by: Darius I. Karel <https://github.com/dikarel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Normal distribution options
 */
interface Options {
    /** The mean of the normal distribution. Defaults to 0 */
    mean?: number | undefined;

    /** The standard deviation of the normal distribution. Defaults to 1 */
    dev?: number | undefined;
}

/**
 * Return a [normally-distributed](https://en.wikipedia.org/wiki/Normal_distribution)
 * random number. By default this, starts with a mean of 0 and a standard
 * deviation of 1 which is the standard normal distribution.
 * @param options Controls the shape of the normal distribution
 */
declare function randomNormal(options?: Options): number;

export = randomNormal;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:20:14 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Darius I. Karel.

1.0.2

7 months ago

1.0.3

6 months ago

1.0.1

3 years ago

1.0.0

5 years ago