Fixed of averagePoint calculation.
CHANCES_FACTOR 0.3 -> 1.0
Created and used macros for generation count controll.