you can use function-pointer-arrays and use a random integer as index number when calling it.

I'm sorry, I'm not sure how it exactly works but it should.

EDIT: JustSid was faster, and his solution might be the better one wink

Last edited by Kartoffel; 10/11/12 20:00.

POTATO-MAN saves the day! - Random