def SampleSum(dists, n):
pmf = MakePmfFromList(RandomSum(dists) for i in xrange(n))<EOL>return pmf<EOL>
Draws a sample of sums from a list of distributions.

    dists: sequence of Pmf or Cdf objects
    n: sample size

    returns: new Pmf of sums