Calculate the Probability of a Flush in Poker using Math & Monte Carlo Simulation

A user on StackOverflow recently tried to simulate the probability of a flush using Python. Here's how to do that mathematically and programmatically.


This is a companion discussion topic for the original entry at https://blog.scious.io/flush-probability-via-math-and-monte-carlo/