Keynote Animations - Can they be random?
You may be able to achieve this behaviour using AppleScript. The questions below touch upon shuffling and randomising slides in Keynote:


How to randomize Keynote slides
Randomizing slides and duration for repeating Keynote


While Keynote is not intended for this kind of behaviour, you may have more success with other more flash card like applications.