def uniform(dimension, value):
    """
    Usual method to calculate priors probability.
    IN:
        dimension (Dimension) : The dimension to calculate the prior for
    OUT:
        (float) : The prior probability
    """
    return 1.0 / (dimension.max_value - dimension.min_value)