removed used of C's RNG because Ripley said so (lol)