original_docstring: Give us N random numbers with the requested distribution
docstring: Give us N random numbers with the requested distribution
docstring_tokens: Give us N random numbers with the requested distribution
code: def random(self, N = 1000):
      """Give us N random numbers with the requested distribution"""
  
      idx_f = numpy.random.uniform(size = N, high = self.Nrl-1)
      idx = pylab.array([idx_f],'i')
      y = self.inversecdf[idx] + (idx_f - idx)*self.delta_inversecdf[idx]
  
      return y
code_tokens: def random ( self , N = 1000 ) : idx_f = numpy . random . uniform ( size = N , high = self . Nrl - 1 ) idx = pylab . array ( [ idx_f ] , 'i' ) y = self . inversecdf [ idx ] + ( idx_f - idx ) * self . delta_inversecdf [ idx ] return y
short_docstring: Give us N random numbers with the requested distribution
short_docstring_tokens: Give us N random numbers with the requested distribution
comment: """Give us N random numbers with the requested distribution"""