colin function
colin([Array])
Returns a deviate from a distribution whose relative probabilities are given by the values in the argument array. A new deviate is generated each time step.
Inputs: array of probabilities (real).
Outputs: index to value in array (int).
This can be used to make a deviate from an explicit set of probabilities where the pattern does not match any other built-in statistical function.