import random


def randunif(mn: float, mx: float) -> float:
    """Return a uniformly-distributed random number in range [mn, mx]"""
    assert mx >= mn
    if mn == mx:
        return mn
    else:
        return mn + random.random() * (mx - mn)