RandomGenerator now limits string length instead of running out of heap
Added Test for RandomGenerator