kSelectionListInt
data structure for randomly picking values from a discrete pool
Methods
void AddItem( int val, int weight )
add val
to the list
its probability of being chosen will be roughly (item weight) / (sum of all item weights)
int Select()
int& Select( bool [unknown] = false )
returns a random item from the list, based on item weights
void Reset()
removes all items from the list
uint GetNumEntries()
returns the number of items in the list
Operators
kSelectionListInt = kSelectionListInt
assignment