Jul-28-2018, 03:30 PM
How do I make a 20 x 20 array and fill it with random 1s and -1s ? I've tried using A=np.random.randint(-1,1,[20,20])
print(A)
but this includes zeros in the array. So how do I make an array without any zeros?
print(A)
but this includes zeros in the array. So how do I make an array without any zeros?