On randomness in quantum mechanics