At a middle school students in seventh grade want to conduct a survey on the most popular type of pet for students in the grade. The students want to make a generalization based on a sample
Which describes how the sample should be chosen?

A: It must be non-random

B: It must be representative

C: It must be selected by a student not in seventh grade

D: It must be selected to include students from each grade of the middle school.