AS183 PRNG C simulation code