Instead of the typical binary 0 or 1, or two consecutive numbers, I need to create a loop which will generate three random -1s and 1s, 100 times. My code so far looks like:
new = []
i =1
while i <= 100:
random = np.random.randint(low=-1, high=1, size=(1,3))
new.append(random)
i += 1
print(new.append(random))
Though this just returns None and even if it was working, would return 0s as well which is not wanted.
print(new)? Here you're just printing the function return value of another.append()call, which will beNone