as i do it:
make an object with 30 animations. name them like "card1", "card2", ...
then i create an variable which creates a random number to choose a random card. => round(random(1,30))
Develop games in your browser. Powerful, performant & highly capable.