Help me debug a mostly a completed 50 lines algorithm on poker hand simulation

The goal is to run a Monte Carlo simulation to find the probability of getting a hand of pure flush without straight. I think my problems are between line 33 to 40.


Author Since: November 30, 2020