import math
import random


def log_uniform(max, min):
    """
    log_uniform(1e-2, 1e-5)
    """
    min_exp = math.log10(min)
    max_exp = math.log10(max)
    exp = random.uniform(min_exp, max_exp)
    return 10**exp