def uniform_cdf(x):
 if (x < 0):
  return 0
 elif (x < 1):
  return x
 else:
  return 1

def uniform_cdf ( x ) : if ( x < 0 ) : return 0 elif ( x < 1 ) : return x else : return 1
returns the probability that a uniform random variable is less than x .