I started using JSPsych/javascript a few months ago and have now coded my first full experiment. I ran a pilot and it became clear that my participants were not being evenly assigned to conditions.
To assign participants to conditions I'm using a randomisation function:
jsPsych.randomization.shuffle
I have a 20 cell design it's quite important that allocation is approximately balanced.
I know Josh de Leeuw has some PHP / JS functions which communicate with a MySQL database which allows you to assign participants to conditions in a balanced way.
This seems a little complicated and I'm not sure I quite follow how to do it.
Has anyone found a way of assigning participants to conditions in a balanced way?