qrandint#
- ray.tune.qrandint(lower: int, upper: int, q: int = 1)[source]#
Sample an integer value uniformly between
lowerandupper.loweris inclusive,upperis also inclusive except forq=1where it’s exclusive. The value will be quantized, i.e. it will be a multiple ofq. The multiples ofqbetweenlowerandupperare drawn uniformly.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.