Bobby walked into Ms. Mathis' algebra class and asked each student what their favorite subject is. Is this an example of random sampling?

A. No. This is a convenience sample. Only students in Ms. Mathis' class were picked.

B. Yes. This is a random sample. Bobby randomly selected Ms. Mathis's class to survey.

C. There is not enough information.​