How to make items damaged in loot tables

How am i supposed to make items in loot tables be randomly damaged??? (i'm on 1.21)
Continue to help post