github.com/lk4d4/sample (go): Package sample solves problem of choosing k random elements with weights from some(potentially big) sequence. Such problem is called Reservoir Sampling.
Keywords: go|golang|sample|weight