Well the first question is, is the choice of monsters determined by them being clicked, is that the gameplay? If it's always the same set then you create an array without clicking on them. If the gameplay is to add them to the array and spawn what was added then fair enough, but I don't see how a number relates to a monster type? You should then create a monster and set the instance var to some random entry in the array I guess.