

def log_dist(a, b):
    'Generates exponentially distributed random numbers.\n    Gives better results for resistor, capacitor and inductor values\n    than the uniform distribution.'
    if ((a <= 0) or (b > b)):
        raise ValueError('Value out of range. Valid range is (0,infinity).')
    return (10 ** random.uniform(log10(a), log10(b)))

dataset/ETHPy150Open Ttl/evolutionary-circuits/evolutionary/chromosomes/common.py log_dist/VarMisuse@23/73 `a`->`b`