def uniform_cdf(x: float) -> float:
    """Returns the prob that a unitform random variable is <=x"""
    if x < 0:   return 0          # Uniform radom is never less than 0
    elif x < 1: return x          # e.g. P(X <= 0.4) = 0.4
    else:       return 1          # uniform random is always less than 1