chained random number generation as a web service