updated random data generator