Generate distribution.