In php, one of the options would be to store the questions in an array and the use shuffle() function to assist in doing what you trying to achieve.
$question_array = array("Qa","Qb","Qc","Qd","Qe");
//Shuffle the array of questions
//print out the arrays to your screen or you may opt to save them yet to another array or variable for later use
To add to @Migotn, do you have the ability to change how they’re stored, or is it a set format that you’re getting from somewhere?
Depending on the answer to that question, the beginnings are different from @Migotn, but the ending is pretty much the same: You’ll want to get the questions into an array and then use the shuffle()-function.