The poolSize attribute specifies the total number of items in the selection pool.
<list>
or
/ poolSize = expressionName | Type | Description |
---|---|---|
integer | integer | An integer indicating the size of the selection pool. |
expression | value | An expression that resolves to the the size of the selection pool. |
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.
The following list creates a random selection pool of size 100 consisting of 30 "X and 70 "O".
<list example>
/ items=["X"; "O";]
/ itemProbabilities=[0.3; 0.7;]
/ poolSize=100
/ selectionMode=random
</list>
The following list creates a random selection pool of size 10 consisting of 5 "A" and 5 "B":
<list example>
/ items=["A"; "B";]
/ poolSize=100
/ selectionMode=random
</list>
The following list creates a sequential selection pool of size 9 equivalent to /items = [1; 2; 3; 1; 2; 3; 1; 2; 3;]:
<list example>
/ items=[1; 2; 3;]
/ poolSize=9
/ selectionMode=sequence
</list>