query_random permutation in newdataprovider