Package ec.util

# Interface RandomChoiceChooser

public interface RandomChoiceChooser
Used by RandomChoice to pick objects by probability from a distribution.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `float`
  `getProbability(Object obj)`
  Returns obj's probability
  `void`
  `setProbability(Object obj, float prob)`
  Sets obj's probability

- ## Method Details

  - ### getProbability

    float getProbability(Object obj)
    Returns obj's probability

  - ### setProbability

    void setProbability(Object obj, float prob)
    Sets obj's probability