I am looking to define a new operator that would work similarly to the + or - operator. My end goal is to make a dice operator for calculating random distributions in the normal d20 fashion (e.g. 5d6 meaning 5 six sided die). I have been trying to find how to overwrite an operator or create a new one in the documentation, but I am not really finding much. I know how to do it in C++, but that hardly translates.
As an extension I would like to include the ability to calculate with some dice a friend of mine has that are bimodal or trimodal.