samedi 20 février 2021

random 2d array in python

Is there a way in python to generate a 2d array (using numpy) with random integer entries without specifying either of low or high? I tried mat = np.random.randint(size=(3, 4)) but it did not work




Aucun commentaire:

Enregistrer un commentaire