Simple pseudo-random number generators in C and Python