create a random array python code example
Example 1: get n random numbers from x to y python
import random
random.sample(range(31), 10)
Example 2: numpy generate random 2d array
import numpy as np
a=np.random.rand(3,3)
print(a)
import random
random.sample(range(31), 10)
import numpy as np
a=np.random.rand(3,3)
print(a)