Allow calling programs to specify the random number generator