generate random vecto pythpn code example
Example 1: random matrix python
np.random.rand(3,2)
Example 2: numpy generate random 2d array
import numpy as np
a=np.random.rand(3,3)
print(a)
Example 3: how to generate a random code in python
import random
randomlist = []
for i in range(0,5):
n = random.randint(1,30)
randomlist.append(n)
print(randomlist)