Add the generateRandomData method