Discrete distribution function + test