randomly generate input data