Use the Random class and a for loop to create exactly 1000 values in the range 1 to 100 (not 0 to 99) and count the number of values <= 50. It should be about 500 if the random numbers are distributed uniformly in the range 1 to 100.