Need help figuring out possible combinations in card game I am creating I am not sure if this is the right place to be asking the question, but hoping for some help. I created a simple card game for a D&amp;D game I am running and I am trying to assign strength to each hand, I wanted to do this by knowing the possible combinations of each hand.
In this game, there is a deck of 45 cards, 5 suits each suit has cards value 1-9. Player has 5 cards in his hand, and the goal is to get cards in hand to equal a multiple of 5, i.e 5,10,15...,45. So I wanted to know how many possible ways are there for a player to get a hand equal to each of those multiples using the cards available in the deck? e.g. to get to a sum of 5 there is only 1 possible hand, you must have all 1's. However I do not know how to easily compute this for the values with many more combinations. Any help would be appreciated!
Thank you!
Neither answer so far has successfully gotten to the probabilities of certain hand totals as having occurred and are unfairly biased towards hands which can only exist with large numbers of suits and against hands which can occur with many or few suits.
Writing a quick and dirty javascript can give the actual totals:
totalHands = function(target){
count=0;
for(a=1; a&lt;46; a++){for(b=a+1;b&lt;46;b++){for(c=b+1;c&lt;46;c++){for(d=c+1;d&lt;46;d++){for(e=d+1;e&lt;46;e++){if((a-1)%9+(b-1)%9+(c-1)%9+(d-1)%9+(e-1)%9+5 == target){count++;}}}}}}
console.log(count)}

This counts the total number of hands (suits relevant and order irrelevant) for your desired sums.  Dividing by $\binom{45}{5}$ gives the probability of having gotten said sum.
The multiples of five in particular occur with the following frequencies and probabilities:
$$\begin{array}{c|c|c}\text{Sum}&amp;\text{Frequency}&amp;\text{Probability}\\\hline 5&amp;1&amp;\approx 8.2\times 10^{-7}\\10&amp;1776&amp;\approx 0.00145\\15&amp;18251&amp;\approx 0.0149\\20&amp;59226&amp;\approx 0.0485\\25&amp;85751&amp;\approx 0.07019\end{array}$$
The probabilities are symmetric with respect to $25$, so the probability of hitting a sum of $20$ is the same as hitting a sum of $30$ for instance and so on...
The number of ways to make a total of $t$ is the coefficient of $x^t$ in $$(x+x^2+\cdots+x^9)^5$$  Each factor represents one of the cards and the term within that factor represents the card.  Since we multiply the terms by adding exponents, the claim follows.
Now, we can just ask Wolfram Alpha to multiply it out.  You just have to pick out the coefficients of terms of interesting degree.  For example, there are $976$ ways to make a total of $35$.