repaired generation of random data sets