Anyone know how to randomize a sequence of numbers in the field calculator?

04-04-2020 02:44 PM
New Contributor

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. 

0 Kudos
1 Reply
MVP Emeritus

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.

That should just about do it....
0 Kudos