In anydice or troll, how can we calculate the odds of rolling 5d6 and counting the successes against 1d10? Successes are every result in each six-sided die equal or higher than the d10 result.
This means that, if the d10 rolls 7, 8, 9, or 10, you always have zero successes, and if it rolls a 1, you always have 5.
I've tried [count {1..d10} in 5d6]
, but anydice says sequence must end with a number. I've tried 5d6>1d10
, but obviously anydice takes 5d6 as the sum of the dice. Maybe it can be done with a custom function, but that seems beyond my skills...