OK, I think I see where you're coming from now.  But since you changed the meaning of GetGainChance, can you please add a comment to that function so people know the range?  e.g. something like

   GetGainChance()
   "Comment here on the range of the return value"
   {
      return piGain_chance;
   }