SelectTopXFromRows
Description:
script:SelectTopXFromRows(v1,v2,v3,v4,v5.....numberOfRowsToPick,maxValueToPick,randomSeed)
Typically used in a grid question, to select a number of rows that should be used later, based on the code value of the row.
Parameters:
- v1,v2,v3...
- Tyically reference to the row 1,2,3 etc of a grid question
- numberOfRowsToPick
- How many rows should we pick (e.g. top 5)
- maxValueToPick
- The highest code-value that we want to include in the pick (e.g. to avoid picking "99 - None of these"
- randomSeed
- Seed to be used to pick if we have multiple rows with the same value that qualifies
Example:
script:SelectTopXFromRows(\grid.a.1,\grid.a.2,\grid.a.3,\grid.a.4,2,5,\@sys_random)