numpy.random.ranomd_integers returning only negative numbers ?

David Cournapeau david at
Wed Nov 1 23:22:10 CST 2006


    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 ?



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

More information about the Numpy-discussion mailing list