How would I make a fern drop a custom item "Tobacco" with a 1/4 chance?

I'm trying to make it so when you're breaking ferns, there's a 1 in 4 chance that it runs a function to give you tobacco. (a custom item)

Continue to help post