In a science experiment, result X is expected to occur 25% of the time and result Y is expected to occur the remaining 75% of the time. The following code segment is intended to simulate the experiment if there are 100 trials.
The result shows that 94 trials were counted, rather than the intended 100 trials. Which of the following changes to the code segment will ensure a correct simulation of the experiment?
(A)Replacing line 9 with IF(RANDOM(1, 4) ⥠2)
(B)Replacing line 9 withELSE
(C) Interchanging lines 5 and 9
(D) Interchanging lines 7 and 11