The OpenD Programming Language

DiscreteVariable.opCall

Samples a value from the discrete distribution using a custom random generator. Complexity: O(log n) where n is the number of weights.

  1. size_t opCall(RNG gen)
  2. size_t opCall(RNG* gen)
    struct DiscreteVariable(T)
    size_t
    opCall
    (
    RNG
    )
    (
    scope RNG* gen
    )

Meta