after that it records which scenario was shown
I strongly recommend that you first record which scenario to show (use a random generator) and then present the proper scenario. But, as you wrote, this is not your question :)
Regarding the random block order, please start with this manual: Rotate Pages. It referes to block of pages, as well.