In [5]:
import numpy as np
In [ ]:
# np.random.randint(1,100)
In [6]:
np.random.randint(1,100)
Out[6]:
In [7]:
z=np.random.randint(1,100)
In [8]:
z
Out[8]:
In [12]:
Out[12]:
In [4]:
randint(1,20)
In [17]:
from numpy.random import randint
In [18]:
randint(1,20)
Out[18]:
In [21]:
from numpy.random import randint
In [31]:
randint(2,3)
Out[31]:
In [34]:
randint(1,20,4)
Out[34]:
In [37]:
za=np.arange(25)
In [38]:
za
Out[38]:
In [45]:
za.reshape(5,5,order='F')
Out[45]:
No comments:
Post a Comment