# ValueError: HyperOpt only allows integer sampling with lower bound 0

**URL:** <https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227>\
**Category:** Ray Tune\
**Created:** [March 11, 2021, 7:35pm UTC](https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227 "2021-03-11T19:35:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asalimih](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/asalimih/32/210_2.png) [@asalimih](https://discuss.ray.io/u/asalimih)\
**Post date:** [March 11, 2021, 7:35pm UTC](https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227/1 "2021-03-11T19:35:55Z")

</div>

I cannot use something like `tune.randint(10,20)` in my configuration for HyperOpt algorithm. what’s the problem? I don’t want the range to start from 0.

---

<div class="post-metadata">

**Author:** ![rliaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rliaw/32/24_2.png) [@rliaw](https://discuss.ray.io/u/rliaw)\
**Post date:** [March 11, 2021, 7:37pm UTC](https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227/2 "2021-03-11T19:37:18Z")

</div>

What version of hyperopt are you using?

---

<div class="post-metadata">

**Author:** ![asalimih](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/asalimih/32/210_2.png) [@asalimih](https://discuss.ray.io/u/asalimih)\
**Post date:** [March 11, 2021, 7:40pm UTC](https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227/3 "2021-03-11T19:40:00Z")

</div>

the version of hyperopt is 0.2.5

---

<div class="post-metadata">

**Author:** ![rliaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rliaw/32/24_2.png) [@rliaw](https://discuss.ray.io/u/rliaw)\
**Post date:** [March 11, 2021, 7:46pm UTC](https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227/4 "2021-03-11T19:46:48Z")

</div>

What’s the full error message?

It seems like this should be supported in the latest version of Ray.

---

<div class="post-metadata">

**Author:** ![asalimih](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/asalimih/32/210_2.png) [@asalimih](https://discuss.ray.io/u/asalimih)\
**Post date:** [March 11, 2021, 8:00pm UTC](https://discuss.ray.io/t/valueerror-hyperopt-only-allows-integer-sampling-with-lower-bound-0/1227/5 "2021-03-11T20:00:19Z")

</div>

you are right. the error was because I was using 1.1.0. updated to 1.2.0 and resolved. thanks
