Source: Player's Handbook

Once per turn when you roll damage for a melee weapon attack, you can reroll the weapon's damage dice and use either total.