PennController for IBEX › Forums › Support › Backtracking Latin square/finding the right seed › Reply To: Backtracking Latin square/finding the right seed
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Hi Kate,
Are you trying to balance out the number of participants in the A through F groups from your CSV table? This section of the advanced tutorial touches on group assignment. There is no automatic way of ensuring you have a properly balanced distribution; the best solution is to run your first batches of participants, check the distribution, and run more participants in each group if needed, until you reach a distribution you are satisfied with
By the way, all the filler trials in your table are defined exclusively for group A. If you’d like to include them for all the groups, create another CSV table where you paste those filler lines, but take out the “group” column; you’ll also want to place the newTrial
currently in your Template
command inside a custom function that you can call from within both Template("acdcd4.csv", myCustomTrialFunction)
and Template("fillers.csv", myCustomTrialFunction)
so you don’t have to write it twice
Jeremy