Bell's Theorem demonstrates that there are no local hidden variables in quantum mechanics. As far as we have been able to demonstrate, it is utterly and completely random. If you can prove otherwise, the physics community would be very interested.
Bell’s Theorem