nextDouble method
Implementation
double nextDouble() {
if (shape < 1) {
// Use Johnk's algorithm if shape < 1
return _gammaLessThanOne();
} else {
// Use Marsaglia and Tsang's method for shape >= 1
return _gammaGreaterThanEqualOne();
}
}