One of Einstein's famous quotes is "God does not play dice", referring to his dislike of the probabilistic model of the universe, as found by quantum theory. However, in the book "Quantum Mechanics: The Theoretical Minimum", the author notes that Einstein was actually the first to propose that quanta of light are governed by probabilistic rules.
So what happened to Einstein that made him go completely against his earlier ideas, given that the majority of the scientific community were in favour of quantum theory?