How to create a multiple choice card with randomized order of answers?

You can store the shuffled array with Anki Persistence (a tried and tested script that you’ll need to include in your template) or SessionStorage (may not work everywhere) and retrieve it on the backside: