up Inquisit Language Reference

resetInterval attribute

The resetInterval attribute determines how many blocks should be run before a counter's randomly selection pool should be reset.

Member of

<defaults> <counter> <list> <button> <clock> <html> <picture> <port> <shape> <sound> <text> <video> <xid>

Syntax

/ resetInterval = integer

Parameters

Name Type Description
integer integer A positive integer specifying the number of blocks, or 0 to reset only after all items have been selected.

Remarks

Resetting the counter causes all items that have been selected to be returned to the selection pool. For selection with replacement, resetting the counter has no effect. This attribute is useful in cases where an experiment performs random selection without replacement over more than one block.

The default behavior for counter elements is to reset after each block (equivalent to a setting value of 1). The default behavior for list elements is to reset only after all items have been selected (equivalent to a setting value of 0).

Examples

The following causes the counters to reset only when all items have been selected:

<counter example>
/ items = (1, 2, 3, 4, 5)>/ resetInterval = 0
</counter>

Copyright Millisecond Software, LLC. All rights reserved.