<h3 dir="auto">Describe the issue:</h3>
<p dir="auto"><code class="notranslate">numpy.random.randint</code> samples <code class="notranslate">[1]</code> happily with these parameters</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.random.randint(1.1, 2.9, size=1)"><pre class="notranslate"><code class="notranslate">np.random.randint(1.1, 2.9, size=1)
</code></pre></div>
<p dir="auto">but raises a <code class="notranslate">{ValueError} low &gt;= high</code> for</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.random.randint([1.1], [2.9], size=1)"><pre class="notranslate"><code class="notranslate">np.random.randint([1.1], [2.9], size=1)
</code></pre></div>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np

# No problems
np.random.randint(1.1, 2.9, size=1)

# Raises error
np.random.randint([1.1], [2.9], size=1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>

<span class="pl-c"># No problems</span>
<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">1.1</span>, <span class="pl-c1">2.9</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)

<span class="pl-c"># Raises error</span>
<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>([<span class="pl-c1">1.1</span>], [<span class="pl-c1">2.9</span>], <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div>
<h3 dir="auto">Error message:</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/Users/juliano/Code/wood-analysis/test.py&quot;, line 7, in &lt;module&gt;
    np.random.randint([1.1], [2.9], size=1)
  File &quot;mtrand.pyx&quot;, line 765, in numpy.random.mtrand.RandomState.randint
  File &quot;_bounded_integers.pyx&quot;, line 1262, in numpy.random._bounded_integers._rand_int64
  File &quot;_bounded_integers.pyx&quot;, line 686, in numpy.random._bounded_integers._rand_int64_broadcast
ValueError: low &gt;= high"><pre class="notranslate">Traceback (most recent call last):
  File <span class="pl-s"><span class="pl-pds">"</span>/Users/juliano/Code/wood-analysis/test.py<span class="pl-pds">"</span></span>, line 7, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span>
    np.random.randint([1.1], [2.9], size=1)
  File <span class="pl-s"><span class="pl-pds">"</span>mtrand.pyx<span class="pl-pds">"</span></span>, line 765, <span class="pl-k">in</span> numpy.random.mtrand.RandomState.randint
  File <span class="pl-s"><span class="pl-pds">"</span>_bounded_integers.pyx<span class="pl-pds">"</span></span>, line 1262, <span class="pl-k">in</span> numpy.random._bounded_integers._rand_int64
  File <span class="pl-s"><span class="pl-pds">"</span>_bounded_integers.pyx<span class="pl-pds">"</span></span>, line 686, <span class="pl-k">in</span> numpy.random._bounded_integers._rand_int64_broadcast
ValueError: low <span class="pl-k">&gt;</span>= high</pre></div>
<h3 dir="auto">Runtime information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sys, numpy; print(numpy.__version__); print(sys.version)
1.24.1
3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-1400.0.29.202)]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import sys, numpy; print(numpy.__version__); print(sys.version)
1.24.1
3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-1400.0.29.202)]
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; print(numpy.show_runtime())
[{'simd_extensions': {'baseline': ['NEON', 'NEON_FP16', 'NEON_VFPV4', 'ASIMD'],
                      'found': ['ASIMDHP', 'ASIMDDP'],
                      'not_found': ['ASIMDFHM']}},
 {'architecture': 'armv8',
  'filepath': '/Users/juliano/Code/wood-analysis/.venv/lib/python3.10/site-packages/numpy/.dylibs/libopenblas64_.0.dylib',
  'internal_api': 'openblas',
  'num_threads': 8,
  'prefix': 'libopenblas',
  'threading_layer': 'pthreads',
  'user_api': 'blas',
  'version': '0.3.21'}]
None"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; print(numpy.show_runtime())
[{'simd_extensions': {'baseline': ['NEON', 'NEON_FP16', 'NEON_VFPV4', 'ASIMD'],
                      'found': ['ASIMDHP', 'ASIMDDP'],
                      'not_found': ['ASIMDFHM']}},
 {'architecture': 'armv8',
  'filepath': '/Users/juliano/Code/wood-analysis/.venv/lib/python3.10/site-packages/numpy/.dylibs/libopenblas64_.0.dylib',
  'internal_api': 'openblas',
  'num_threads': 8,
  'prefix': 'libopenblas',
  'threading_layer': 'pthreads',
  'user_api': 'blas',
  'version': '0.3.21'}]
None
</code></pre></div>
<h3 dir="auto">Context for the issue:</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Describe the issue:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="numpy/core/src/umath/loops_trigonometric.dispatch.c.src:202:20: internal compiler error: in convert_move, at expr.c:218
       NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(FLOAT_@func@)
                          ^
      0xb6b59717 __libc_start_main
          /build/glibc-FUvrFr/glibc-2.28/csu/libc-start.c:308"><pre class="notranslate"><code class="notranslate">numpy/core/src/umath/loops_trigonometric.dispatch.c.src:202:20: internal compiler error: in convert_move, at expr.c:218
       NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(FLOAT_@func@)
                          ^
      0xb6b59717 __libc_start_main
          /build/glibc-FUvrFr/glibc-2.28/csu/libc-start.c:308
</code></pre></div>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip3 install numpy"><pre class="notranslate"><span class="pl-s1">pip3</span> <span class="pl-s1">install</span> <span class="pl-s1">numpy</span></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="https://pastebin.com/EGraqF50"><pre class="notranslate">https://pastebin.com/EGraqF50</pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">Raspberry Pi 4 + Raspberry Pi OS Buster.<br>
Python 3.7.3<br>
Numpy version being attempted is 1.21 (didn't choose it in particular, it's just the one pip would install).</p>
<p dir="auto">Apt packages installed so far are:<br>
- python3<br>
- python3-pip<br>
- build-essential<br>
- cmake<br>
- libhdf5-dev<br>
- libatlas-base-dev<br>
- gfortran<br>
- libavcodec-dev<br>
- libavformat-dev<br>
- libswscale-dev<br>
- libv4l-dev<br>
- libopenblas-dev</p>
<p dir="auto">I've setup an identical system a year ago, running the exact same code (using Ansible for setup) and there was no issue.</p>