def RandomSum(dists):
 total = sum((dist.Random() for dist in dists))
 return total

def RandomSum ( dists ) : total = sum ( ( dist . Random ( ) for dist in dists ) ) return total
chooses a random value from each dist and returns the sum .