RandomGenerator class added

Made RandomGenerator static class, and used instead of variable of
random type.