• Like lerp, but (assuming min and max are ints) will scale the input value t so that it has an even chance of ending up on any of the ints in-between.

    Parameters

    • min: number

      The minimum integer value (inclusive).

    • max: number

      The maximum integer value (inclusive).

    • t: number

      The position between those values.

    Returns number

    t scaled between min and max, with an even chance of ending in any value.