Randomized test question generation