adding RandomGenerator