Board Thread:Wiki Discussions/@comment-24003134-20131122101458/@comment-24108837-20131123004650

Did you do it in flex or actionscript?

You can make 3 arrays. 1 containing the names and 2 containing the elements as

namearray[x] = "name", element1array[x] = air, element2array[x] = water for instance.

Then you can let it search through the arrays till it finds a proper combination. There are multiple possibilities in it so there has to be some randomisation too. Pity you do not really know the odds.