pub fn bernoulli<B: Backend, T: Float>( key: &Key<B>, p: impl ArrayLike<B, T>, shape: impl Into<Shape>, ) -> Array<B, bool>
Random booleans that are true with probability p (jax.random.bernoulli).
p
jax.random.bernoulli