Makeing an enemy spawner

i want a spawner that does these things
it will pick a number 1 - 5
when it hits three spawn an enemy
if it hits 3 pick a number 1-3
1 spawnig enemy type a
2 spawning enemy type b
3 spawning enemy type c
and do this routine every second

Please tell me in C# or javascript please

http://forum.unity3d.com/threads/67866-Three-Requests-(one-halfway-done)

Last post or second to last post aught to do.

Search feature can also help you with this.

Its not exactly what i want but its pretty close i should probably explain a little more i am makeing a shooter and i have 5 spawners and i have 3 types of enemyies

bottom one handles both of that…

The only part you’d have to add is that you only want it to spawn when the number 3 is chosen at random out of 5. Otherwise it should handle everything you’ve described so far.