up Inquisit Language Reference

poolSize property

Gets or sets the size of the selection pool.

Member of

<list>

Syntax

list.name.poolSize

Read/Write

Type

integer

Remarks

The poolSize attribute creates a random selection pool of the specified size, adding items according to any itemProbabilities specified, or otherwise in proportion to their occurrence the items attribute. If poolSize is not specified, the size of the pool is equal to the number of items listed in the items attribute.

When setting poolSize in combination with itemProbabilities, choose a size for which each of specified probabilities results in a whole number of items in the pool. If the poolSize results in a fractional count of a given item, the count will be rounded to the nearest integer.

Examples

The following sets poolSize to 100 on a list:

<trial example>
/ onTrialBegin = {list.primenumbers.poolSize = 100;}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.