Fixed random being limited by RAND_MAX