Added RandomGenerator class