Made RNG a member variable instead of creating a new one every time it was needed.