This library extends class Random in the Ruby standard library. The Random class in the Ruby standard library supports only random sampling from discrete/continuous uniform distribution. This library provides random sampling methods from many kinds of probability distributions such as normal, gamma, beta, chi_square, t, F, binomial, Poisson, and many other distributions.
Gemfile gem 'randomext', '~> 0.1'
install gem install randomext