fixed bug in decision making, the precision of random number was too high