Some model for the generalization of the binomial distribution: algorithms and applications