replace RandomInt with RangeInt