finished rng refactor for mc solver