shuffle question order for flashcards

Hello is it possible to change the flashcards.js so that the question order isn't always the same, and if yes how?
Thanks in advance

fnoks's picture

This is possible by doing something like this:

this.options.cards = H5P.shuffleArray(this.options.cards);

Put this in the constructor or the attach function.

Be aware all local changes to the H5P files will be overwritten if you update the libraries.

Thank you for this informaiton. I would suggest it would be an enhancement if the flashcards library was random by default and ideally the option to turn off random available within the UI. This is just a future enhancement suggestion. Great job for the work around.

falcon's picture

Great feedback, thanks!

We'll consider it next time we upgrade flashcards