Hi again,
thanks for your reply and the code Scott. I have attached my own testing code, which uses betarand at k-rate. I find that with alpha and beta = 7 the code will complete, but it takes approximately more than double the alotted 2 seconds. Alpha and Beta values are supplied in the score, but printed out for every instrument call.
Currently, the instrument runs betarand at k-rate, calculating the minimum and maximum values, to print them and the responsible alpha and beta in the last cycle of the event. This is to gain a better understanding of the relationship between the parameters and the resultant random values.