Reply To: Randomly present a subset of items

PennController for IBEX Forums Support Randomly present a subset of items Reply To: Randomly present a subset of items

#10583
Jeremy
Keymaster

Hi Hailin,

You could use the custom pick function. Assuming all your critical items have labels that start with exp. and all your filler items have labels that start with fil. it would look something like this:

var shuffleSequence = seq(
  shuffle(
    pick( randomize(startsWith("exp.")) , 10),
    pick( randomize(startsWith("fil.")) , 30)
  )
)

Jeremy