Reply To: Randomizing Instruction+Task pairs

PennController for IBEX Forums Support Randomizing Instruction+Task pairs Reply To: Randomizing Instruction+Task pairs

#10980
Jeremy
Keymaster

Hi,

This will accomplish what you want:

tasks = [
  ["synonym_instruction", randomize("synonym")],
  ["string_match_instruction", randomize("string")],
  ["colour_match_instruction", randomize("colour")],
  ["size_match_instruction", randomize("size")]
]
fisherYates(tasks)

Sequence(
  // items before
  ...tasks.flat(),
  // items after
)

Jeremy