I want to generate random bits of 0 and 1
Below I attach my codes
problem:- I am able to get a random number but if I want to say 6 number then each time I get same random number
example:-
my input:
6 //total random numbers
4 //total bits in one random number
my output
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
what I want is every time there should be a random number like
1 0 1 0
1 1 1 0
1 1 0 1
1 1 1 1
10 0 0
0 0 1 1