Project Euler tests and randoms