Random number between minimum and maximum can be generated by:
A. minimum + (rand() % (maximum – minimum));
B. minimum + (rand() % (maximum – minimum + 1));
C. minimum * (rand() % (maximum – minimum))
D. minimum – (rand() % (maximum+minimum));
Answer:B
Random number between minimum and maximum can be generated by:
A. minimum + (rand() % (maximum – minimum)); B. minimum + (rand() % (maximum – minimum + 1)); C. minimum * (rand() % (maximum – minimum)) D. minimum – (rand() % (maximum+minimum));