def SampleSum(dists, n):
 pmf = Pmf((RandomSum(dists) for i in range(n)))
 return pmf

def SampleSum ( dists , n ) : pmf = Pmf ( ( RandomSum ( dists ) for i in range ( n ) ) ) return pmf
draws a sample of sums from a list of distributions .