Can a for loop be used outside of loop?

In setup(). Good idea. Let us know how it turns out.

You may need to study arrays to get it working.