There is not enough information. Since you mentioned
[quote:2boxnoh7]generate level from that array
How about you tell us first what kind of game you are trying to make? What kind of fabulous experience are you trying to craft? Or else, we might not be able to help you validly.
But on the primitive level, you could store number or text in the array and then refer to these values to create certain specific objects when you wanna generate the level. You have to define all these yourself. I don't think there is a much of a formula you can look for.