mardi 1 novembre 2016

Can I generate an array with both negative and positive numbers and specify the limits and the dimension of this array?

c=np.random.rand(10,2) generates an array of random numbers from in [0,1). Can I generate the same array (in terms of size) but with negative AND positive numbers? Moreover, can I choose the limits and the dimension of this array? for example if I want from -2 to 2.




Aucun commentaire:

Enregistrer un commentaire