require StatsBase 0.5 (using Sampling interface there)