Hint: If I roll two d6, the probablity of getting a 12 would be the lowest, but getting a score of 6 would be highest
Actually that is a poor hint if you want to do it properly. Scaling down is easier then scaling up
You see a d20 has only 20 possibilities and a d6 has 6
Two dice have 21 possibilities and so on. (1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 2/2, 2/3, 2/4, 2/5, 2/6, 3/)
Eliminate 1/1 or 6/6 and then create your rolls based on the results
Here we will eliminate 6/6... That will be a reroll.
1/1 = 1
1/2 = 2
1/3 = 3
1/4 = 4
1/5 = 5
1/6 = 6
2/2 = 7
2/3 = 8
2/4 = 9
2/5 = 10
2/6 = 11
3/3 = 12
3/4 = 13
3/5 = 14
3/6 = 15
4/4 = 16
4/5 = 17
4/6 = 18
5/5 = 19
5/6 = 20
6/6 = Reroll
and so on. The order of the dice don't matter
I am not sure this works, something about my knowledge or probability says to me that all numbers in my example are not equal.
Now there is a type of math that does this easily but I forgot what it is called.
"How would you approach the problem of generating a range of any numbers from any die?"
Well with a dice that is lower then the dice you want the result with you want to make a combination of sets that can equal the sets of the larger dice.
The problem can come when you add more then two dice. I believe if I used three 6s... a 1/1/1 has less of a chance then 1/1/2. (Which is why I dislike probability).