class="resources"
Generates a pseudorandom pattern of ones and zeroes. Each element of bernoulli noise is computed by flipping a coin weighted by ones probability. If ones probability is 0.7, each element of bernoulli noise has a 70% chance of being one and a 30% chance of being zero.

![]() |
samples specifies the number of samples contained in the output array. samples must be greater than or equal to 0. The default value is 128. |
![]() |
ones probability specifies the probability of a given element of bernoulli noise being true (1). The default is 0.5. |
![]() |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is 1. If seed is less than or equal to 0, the noise generator is not reseeded and resumes producing noise samples as a continuation of the previous noise sequence. This is the default behavior. |
![]() |
bernoulli noise contains the Bernoulli-distributed, pseudorandom pattern. |
![]() |
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. |