Randomizing questions in tutorials and learnr

I'd like to design tutorials which randomize the display of a question / chunk so that I can measure the causal effect of a particular teaching technique.

For example, an A/B test in a class of 100 students where 50 students are asked to complete task X and the others are assigned task Y. I track which student was assigned to which and link them to future responses.

A Qualtrics survey can do extensive randomization, but I was wondering if people have done that in, e.g., learnr? I'm interested in figuring out the best medium.