Answer:
A seems to be random, while B seems to be not random
Step-by-step explanation:
A is random, because you're asking every 15th person who either buy lunch from the cafeteria, or from home as this type of sample is not specified and is random, instead of asking everybody on the school roster whether they bring lunch from home or from the cafeteria.
B is not random, as you're measuring every single plant, and is not giving a random sample or quantity of the plants.