Factored Random creation out of core library.
More testability refactoring.