rand generator bug fixed