2d10 would be used if each arrow had a 10% chance of being cursed. But that's not the case. There are 10 arrows, five are cursed, and 2 are selected. Therefore the first arrow would have a 5/10 chance of being cursed, while the second selection would have either a 4/9 or 5/9 chance of being cursed depending on whether or not the first arrow was cursed.
To solve this, requires using combinatorics.
There are 10 choose 2 (45) ways to choose two arrows, of which there are 5 choose 2 (10) ways to choose 2 arrows that are non-cursed. This works out to be 2/9 odds to pull two safe arrows. Which means you need to get funkier with the dice.
Therefore the first arrow would have a 5/10 chance of being cursed, while the second selection would have either a 4/9 or 5/9 chance of being cursed depending on whether or not the first arrow was cursed.
If they pulled one, checked if it was cursed, and then pulled another, you'd be right
But they pulled two out of ten at the same time.
So roll two d10s, and say odds are cursed and even would regular. And that's good enough.
I mean, maybe I'm missing something and I didn't spell it out exactly what I meant in the first comment, but that should be the exact same odds as the action.
We have a binary result: cursed or regular. You probably wouldn't lose anything by flipping a coin twice as long as the distribution of the arrows in the quiver is truly random.
Like, if you're looking closer than that, you might as well account for when the arrows were added to the quiver, if they were added at the same time, how much the quiver has been jostled. The line has to be drawn somewhere, which I think is literally the joke of the comic....
There's a very very simple solution but the DM is about to overthink and come up with the same result as the easy way, which they'll realize after taking the long way around.
I know I've lost a lot of time by thinking "it's worth being exact" and then I found out, no it really wasn't worth it.
This is where a LLM might come in handy. Just tell it the parameters and say roll random. I think D&D could really benefit from the LLM. Shouldn't be too hard to just let it be the DM. That way everyone can be in the party 😂
Why use dice and simple math to solve a problem, when we can use an enormous pile of circuitry, electricity and vector calculus to get an algorithmically determined string of text that contains a probabilistically likely description of the correct dice to roll?