import math


def generate_pareto_distribution_from_CDF(rand, lambda_pareto):
    """
    Generate numbers following Pareto distribution using its CDF and a random number uniformly generated
    """
    # We use beta = 2 (Pareto Parameter from distribution)
    return (1/math.sqrt(1-rand) - 1)/lambda_pareto