The unit interval[0,1]on the y-axis,which represents the CDF,can be split into three segments based on the cumulative probabilities of 30%,65%,and 100%corresponding to values of 10,20,and 50.These three intervals are denoted as[0,0.3],(0.3,0.65],and(0.65,1.0].The random number that is generated(0.59)takes on a value of 20 because it is in the second interval(0.3,0.65].