The poolsize attribute specifies the total number of items in the selection pool.
<list>
integer expression | An expression that can be converted to an integer value. |
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=uniform
</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=uniform
</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>