Intermediate commit for RNG refactor
finished rng refactor for history and domain concepts