Urgent help needed with bar puzzle

robtillaart:
Why not write a small simulation with counters and random generator on Arduino to run it a few million times should converge to result ...

Like the one in Reply #20? :wink: