Hi Marius et al, if I am correct, this is actually the standard ANSI C random generator (just written out in numbers), as originally proposed by Kerninghan/Ritchie. The period is 2^31 and it is even used for openssl encryption, so I think it is actually not so bad. cheers, Soeren