code: def SampleSum(dists, n):
      
      pmf = MakePmfFromList(RandomSum(dists) for i in xrange(n))
      return pmf
docs: 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