rand_generator base class contains dimensionality;
and it can only generate a number of random numbers at a time equalling to the given dimensionality