generate random data with traversing method