Discrete Statistical Distributions
p(x)=p0(x−L) which allows for shifting of the input. When a distribution generator
is initialized, the discrete distribution can either specify the
beginning and ending (integer) values a and b which must be such that
p0(x)=0x<a or x>b in which case, it is assumed that the pdf function is specified on the
integers a+mk≤b where k is a non-negative integer ( 0,1,2,… ) and m is a positive integer multiplier. Alternatively, the two lists xk and p(xk) can be provided directly in which case a dictionary is set up
internally to evaluate probabilities and generate random variates.