Vanishing spaces of random sets and applications to Reed-Muller codes