random animations and codes

Yuuup!!
I wanted to ask something: how can I make random animations and codes? That is for an enemy. The problem is that there are many codes in the project, but I just want to use those one which are made fir the enemy in a randm way.how can I do??
I wanted to ask something: how can I make random animations and codes? That is for an enemy. The problem is that there are many codes in the project, but I just want to use those one which are made fir the enemy in a randm way.how can I do??