So, I've seen a few posts touch upon random spawning but it wasn't quite what I was looking for.
I'm making a top down shooter (think 1943) and upon an enemy being destroyed I want them to randomly spawn either a power up, health, or nothing. Ideally (if it's not too crazy) I'd like to have control over, say, the likelihood of power ups that are spawned per level. I've gotten to the point where I can make the spawns seem random - but I know they're not and it bothers the crap out of me. I also fee like I'm taking the long road to get there by doing instance variables on each enemy that tick up every time the enemy is destroyed. When the count = 4, spawn object, etc. There has to be an easier way!
Any help is appreciated.