Now generates random array of binary elements as the input vector