Inspired by Josh's True 100%+ series I decided to look up what is the real probability to get royal flush in poker machine. But as I am no math person, I wrote a simple C++ program that plays this mode a lot of times and gathers statistic probability based on the results. Source code and 64-bit exe can be found here: http://rgho.st/7rJnXnSpw.
Number of simulations: ~1e+07Number of threads: 4Seed: 2256776011Got royal flush: ~374 timesResult: ~374/1e+07 = 0.00374%It means if your playout time is 20 sec in average, thenyou will get a royal flush in 148 hrs 32 min 39 sec.If you got it earlier consider yourself as a lucky one,if later then you are unlucky.Good luck!
I am interested in getting as many statistics as possible, so I would appreciate if anyone could run this program with big simulation amounts and post the results here.
Run the program from command line with parameters:
number_of_simulations [number_of_threads] [seed]
Edit. Fixed time output. Added how-to-run info