import random


def get_random_from_distribution(minimum_value, distribution, increment=1):
    """Returns an integer from minimum_value to len(distribution)*increment,
    where the probability of any specific integer is determined by the
    probability distribution.
    """
    x = random.random()
    result = minimum_value - increment
    for limits in distribution:
        if x > limits[1]:
            result = result + increment
        else:
            break

    return result