Classical randomness in quantum measurements