ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Non-deterministically generates some integers.

This op may use some OS-provided source of non-determinism (e.g. an RNG), so each execution will give different results.

shape A Tensor. The shape of the output tensor.
dtype An optional tf.DType. Defaults to tf.int64. The type of the output.
name A name for the operation (optional).

A Tensor of type dtype.