Bernoulli Random VI
- Updated2025-07-30
- 2 minute(s) read
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.

Inputs/Outputs
reset
—
reset, if TRUE, resets the seed to the seed control value. The default is FALSE.
samples
—
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128.
p
—
p is the probability of success (probability that x = 1) and must be in the interval [0,1].
seed
—
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1.
Bernoulli random numbers
—
Bernoulli random numbers contains randomized data distributed according to the Bernoulli distribution.
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. |
reset
—
samples
—
p
—
Bernoulli random numbers
—
error
—