def powerlaw_sequence(n,exponent=2.0):
    return [random.paretovariate(exponent-1) for i in range(n)]
Return sample sequence of length n from a power law distribution.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/utils/random_sequence.py/powerlaw_sequence