fully functional for sum of dice