added function to generate random XSV data