import random


def random_value(a, b):
    """
    Generates a random number within the range a, b
    :param a: random from
    :param b: random to
    :return: a random value in range
    """
    return float(random.randint(a, b))