<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/legacy/backend.py#L1180-L1191) |

DEPRECATED.

    tf.keras.backend.random_bernoulli(
        shape, p=0.0, dtype=None, seed=None
    )