I have three separate groups of 80 each. In each of those groups, I am testing 8 different treatments. So 10 of every treatment in each group of 80. The distribution of each treatment needs to be even.
Take a look at How to Generate a Random Number in Python | Python Central you should be able to put it into a def in the calculator.