add weighted-n-of-with-repeats (close #3)