Automatic nonunoform random variate generation - Hormann, Wolfgang (Statistics and computing, 2004)