does anyone know how to change the odds of an item dropping in a datapack?

i am trying to create a datapack that spawns a custom item in a mineshaft chest but im not sure how to change the droprate, as i want it to be somewhere around 5%.
Was this page helpful?