From: Keith G. <kwg...@gm...> - 2006-11-02 05:29:36
|
On 11/1/06, David Cournapeau <da...@ar...> wrote: > Hi, > > I want to generate some random integers,let's say in the range [- > 2^15, 2^16]. Why doing: > > noise = numpy.random.random_integers(- (2 ** 15), (2 * 15), 22050) > > gives only negative numbers ? I guess 2^15 is too big to be an int. Would this work? int(N.random.uniform(1e15,1e16)) |