adding functionallity to randomdatagenerator