Randomising?

hi everyone!
I’m making a little tower defence game but i’ve run into a problem;
I need a code to randomise my enemies (like in which direction they come from, and how many come)
your help would be greatly appreciated, and I’ll put you/your site in the credits of the game (if you want)

(no, i dont know about attachMovie or duplicateMovieClip)
thanks.