Fixed Bug 2098. Added gamma distribution to the random number generator
and made it available for scan items.