added random data generator