I'm using Python 3.7.7.
I want to create a Numpy array with random values between 1 and 0. I have found that I can create an array with all of its elements equal to zero:
zeros = np.zeros((960, 200, 200, 1))
Or equal to one:
ones = np.ones((960, 200, 200, 1))
Those functions return an array with all of its elements equals.
I want to create an array with its elements are zero or one at random positions.
How can I do it?