Microsoft Research, Cambridge
Creates a discrete random variable with the specified probabilities of having value 0,1,...,(v.Count-1).

Declaration Syntax

Parameters
- valueRange (Range)
- A range defining the possible values for the variable.
- v (Vector)
- The set of probabilities of having each value. Must add up to one.

Return Value
Discrete random variable
Assembly:
Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)