fix generate random data