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:
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: