update the way to get random data for better performance