Chances to roll a number of results greater than 5 on a number of d10s

I’m trying to figure out how to implement a dice roller function.

I would like to know the chance in % to get [1 to X] results of 6+ on [1 to 10] 10-sided dice. So, for example, I would like to know the probabilities of 5 10-sided dice resulting in 3 results of 6+ (this is just one set of 10-sided dice I’m curious about).

Thanks a lot for your help.