I have the following code in which I am trying to build a random number object based on the type of distribution and the parameters of said distribution. The code works insomuch