Every random generator class has NextValue function that returns next generated number. Bernoulli and multivalue discrete random value are generics, so you can generate, for example, string random values.

Sample program to generate Bernoulli and multivalue discrete random values: