code: def approxUniform(N,bot=0.0,top=1.0):
      '''
      Makes a discrete approximation to a uniform distribution, given its bottom
      and top limits and number of points.
  
      Parameters
      ----------
      N : int
          The number of points in the discrete approximation
      bot : float
          The bottom of the uniform distribution
      top : float
          The top of the uniform distribution
  
      Returns
      -------
      (unnamed) : np.array
          An equiprobable discrete approximation to the uniform distribution.
      '''
      pmf = np.ones(N)/float(N)
      center = (top+bot)/2.0
      width = (top-bot)/2.0
      X = center + width*np.linspace(-(N-1.0)/2.0,(N-1.0)/2.0,N)/(N/2.0)
      return [pmf,Xf approxUniform(N,bot=0.0,top=1.0):
      '''
      Makes a discrete approximation to a uniform distribution, given its bottom
      and top limits and number of points.
  
      Parameters
      ----------
      N : int
          The number of points in the discrete approximation
      bot : float
          The bottom of the uniform distribution
      top : float
          The top of the uniform distribution
  
      Returns
      -------
      (unnamed) : np.array
          An equiprobable discrete approximation to the uniform distribution.
      '''
      pmf = np.ones(N)/float(N)
      center = (top+bot)/2.0
      width = (top-bot)/2.0
      X = center + width*np.linspace(-(N-1.0)/2.0,(N-1.0)/2.0,N)/(N/2.0)
      return [pmf,X]
docs: Makes a discrete approximation to a uniform distribution, given its bottom
      and top limits and number of points.
  
      Parameters
      ----------
      N : int
          The number of points in the discrete approximation
      bot : float
          The bottom of the uniform distribution
      top : float
          The top of the uniform distribution
  
      Returns
      -------
      (unnamed) : np.array
          An equiprobable discrete approximation to the uniform distribution.