Question: Need to rewrite the program to randomize the question order WITHOUT LOOPS. Each time you run the program, the order will be different. Use srand
Need to rewrite the program to randomize the question order WITHOUT LOOPS. Each time you run the program, the order will be different. Use srand ( ) and rand ( ) functions and % ( mod) operator to get random number.
The number of permutions we can have when order is important is : n! / ( n - r)! = 3!/(3-3)! = 3!/0! = 3! = 3 x 2 x 1 = 6
Get a random number from 1 to 6. If the random number is 1, use the 1 of the 6 permutations. If the number is 2, use 1 of the 5 permutation and so on.

#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
