On 11/1/06, David Cournapeau <[EMAIL PROTECTED]> 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)) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion