generate n testdata from the data