Interface Random

Index

Methods

Methods

public irwinHall(count: number): () => number

Returns a function for generating random numbers with an Irwin-Hall distribution

Parameters

  • count: number

    The number of independent variables

Returns

() => number

public logNormal(mean?: number, deviation?: number): () => number

Returns a function for generating random numbers with a log-normal distribution

Parameters

  • mean?: number optional

    The expected value of the generated pseudorandom numbers

  • deviation?: number optional

    The given standard deviation

Returns

() => number

public normal(mean?: number, deviation?: number): () => number

Returns a function for generating random numbers with a normal distribution

Parameters

  • mean?: number optional

    The expected value of the generated pseudorandom numbers

  • deviation?: number optional

    The given standard deviation

Returns

() => number