priQ test with rand()