Configured random number generator