population sampling functions migrated to StatsBase