def METHOD_NAME(self, a: float, b: float, precision: int = 15) -> float:
    """Get a random number in the range [a, b) or [a, b] depending on rounding.
    :param a: Minimum value.
    :param b: Maximum value.
    :param precision: Round a number to a given
        precision in decimal digits, default is 15.
    """
    return round(a + (b - a) * self.random(), precision)