Outputs random integers from a uniform distribution.
tf.raw_ops.StatefulUniformInt(
resource, algorithm, shape, minval, maxval, name=None
)
The generated values are uniform integers in the range [minval, maxval)
.
The lower bound minval
is included in the range, while the upper bound
maxval
is excluded.
The random integers are slightly biased unless maxval - minval
is an exact
power of two. The bias is small for values of maxval - minval
significantly
smaller than the range of the output (either 2^32
or 2^64
).
Returns | |
---|---|
A Tensor . Has the same type as minval .
|