Function nextDouble

  • Generates a random floating point number between from and to.

    Delegates the Math.random's PRNG algorithm to randomness.

    Returns

    A floating point number between from and to.

    Parameters

    • from: number

      Lower boundary to the generated value (inclusive).

    • to: number

      Upper boundary to the generated value (exclusive).

    Returns number

Generated using TypeDoc