OneOfIndexGenclass | _main.t[1262] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
class
OneOfIndexGen : object
idx_ | _main.t[1468] |
listAttrs | _main.t[1308] |
For example, 'seq,rand' runs through the entire list in sequence once, then generates independently random values from then on. 'shuffle,stop' runs through the list once in shuffled order, then repeats the last pick from the shuffled list forever.
The individual attribute values are:
rand - pick an item at random, independently of past selections.
rand-norpt - pick an item at random, but don't pick the single most recent item chosen, to avoid repeating the same thing twice in a row.
rand-wt - pick an item by random, weighting the items with decreasing probabilities. The last item is given relative weight 1, the second to last weight 2, the third to last weight 3, etc. In other words, the nth item from the end of the list is n times as likely to be picked as the last item. The picks are independent.
seq - run through the items in sequence (1, 2, ... numItems).
shuffle - run through the list in a shuffled order.
shuffle2 - shuffle the list into a random order, but only run through half before reshuffling
stop - repeat the previous selection forever. (This should only be used as the second or later attribute in the list, since it depends on a prior selection being made.)
lst_ | _main.t[1465] |
numItems | _main.t[1264] |
getNextIndex ( ) | _main.t[1315] |