Updated coin algorithm

Doge changed the coin amount generation algorithm a while ago. This should bring us up to speed.