small script to get random sample of quasars