For those having trouble getting the 5 scarabs needed for the last level because they are killing everything so fast-Try to get the Viking hat.
It makes it so the temples take longer to build, and you get bonuses for chaining kills. Keep your cursor to the side of the level, and try to use your laser beam to kill minions when they are lined up.
I struggled on getting my last golden scarab badge for a while and barely scrapped by on my first try as soon as I switched hats.
I'm not exactly sure what algorithms you use to determine the hit percentages, but they seem to be off. I know you can technically get 10 tails, when it should be a .50 chance, but the odds of it is low. Based on my experience of playing through the game 2x and other people's comments, your numbers are off.