make random generate number be part of core domain