Which of the following situations best represents a random sample?
A. Surveying a junior high population on the number of miles driven per year.
B. Selecting fifty students from the high school population out of a hat to survey them about what the theme of the dance should be.
C. calling voters registered as democrats and surveying who they will vote for during the presidential election
D. Selecting players from the basketball team to survey students about their favorite sports