How can I generate Random arrays of integers containing only 0 and 1 values of size 8
for example
randomval[]= {0,0,0,1,1,1,0,0};
then it stores the value 0,0,0,1,1,1,0,0 in a file so if I want to regenerate new values for "randomval" it checks if 0,0,0,1,1,1,0,0 has been previously been chosen to make sure it has not been repeated and would generate
something else like : randomval[]= 1,1,0,0,1,1,0,0
then also store that in the file