Added casting to int when get random animation
Changed order in animation frame model