The random number generator factory