I think I see what you are going for here. Are you planning to use two loops?

This seems overcomplicated and inefficient to me. I do like it when people think up something original though.