Test for pseudorandom generator