ray.tune.randint#
- ray.tune.randint(lower: int, upper: int)[source]#
Sample an integer value uniformly between
lowerandupper.loweris inclusive,upperis exclusive.Sampling from
tune.randint(10)is equivalent to sampling fromnp.random.randint(10)Changed in version 1.5.0: When converting Ray Tune configs to searcher-specific search spaces, the lower and upper limits are adjusted to keep compatibility with the bounds stated in the docstring above.