Just use a regular calculator?
Or divide in chunks of a hundred or thousand and give the remainder to the player sitting to the left of the player who got it last time?
So I'm in game right now, and it's taking forever to divide the treasure (platinum, gold, electrum, silver, copper) evenly among the players.
Someone must have invented a D&D coin calculator by now.