Produce a weighted random sampling based on the weights calculated from a given block.
>= 0
Christine Oen