Generates random values from a variate X, where X describes the selected distribution type. You must manually select the polymorphic instance to use.

When using the Bernoulli instance, X represents a Bernoulli-distributed variate with one of two possible outcomes: success (x = 1) or failure (x = 0). The Bernoulli probability parameter p is the probability of success of a single trial or experiment.


icon

Inputs/Outputs

  • cbool.png reset

    reset, if TRUE, resets the seed to the seed control value. The default is FALSE.

  • ci32.png samples

    samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128.

  • cdbl.png p

    p is the probability of success (probability that x = 1) and must be in the interval [0,1].

  • ci32.png seed

    seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1.

  • i1du32.png Bernoulli random numbers

    Bernoulli random numbers contains randomized data distributed according to the Bernoulli distribution.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.