Corrected default generator, added dimensionality check for generated vector.