sample
Draws a single random integer value from this distribution.
Return
a random integer drawn from this distribution.
Parameters
random
the source of randomness.
Draws n independent random integer values from this distribution.
Each element in the returned array is drawn independently using sample. Subclasses may override this method to provide batch-optimized sampling.
Return
Parameters
n
the number of values to draw. Must be non-negative.
random
the source of randomness.
Throws
if n is negative.