Hi,
try
Tuples[{0, 1}, 2] (*{{0, 0}, {0, 1}, {1, 0}, {1, 1}}*)
If you change 2 to any N, it should do what you want.
Cheers,
M.
Hi Marco, Thank you so much for your reply. I was not aware of this function. Many thanks again.