I am wondering how to duplicate each element in a list arbitrary of times, e.g.
l = ['a', 'b', 'c']
the duplicate elements in l result in a new list,
n = ['a', 'a', 'a', 'a', 'b', 'b', 'c', 'c', 'c']
so 'a' has been duplicated 3 times, 'b' once, 'c' twice. The number of duplicates for each element are decided by numpy.random.poisson e.g. numpy.random.poisson(2).