SelectRandomN

Description:

script:SelectRandomN(ListToPickFrom,NumberToPick,randomSeed)

Typically used to select a number of codes from a multi-choice question

Parameters:

  • ListToPickFrom
    • Typically reference to a multiple-choice question
  • NumberToPick
    • How many codes should we pick
  • randomSeed
    • Seed to be used if more codes than we request are

Example:

script:SelectRandomN(\BrandsKnown.a,3,\@sys_random)

Result:

1;3;5 - if 1, 3 and 5 afre between the codes selected at \BrandsKnown