Firtly, I DID state the problem, also, I am NOT asking anyone to write source code for me, just a pointer would do, thirdly, its not a dice game, that was used purely as a descriptive itemisation of the problem at hand.

I have used the methods Quadraxas and mercuryus suggested, but they dont return the parameters required.

Thought you guys liked a challenge, I know I do.....