def quadratic_probs(num_values):
    """Make an array containing quadratically increasing probabilities."""
    total = (num_values - 1) * num_values * (2 * (num_values - 1) + 1) / 6.0
    probs = [i * i / total for i in range(num_values)]
    return probs