Wolfram Demonstrations: Source code

Bell's Theorem