a few PRNG implementations and some test codes.