switched to safe RNG and fixed percentage reporting division by zero