Easiest way to generate random int64 array in numpy?
<p>I want to make random array of <code>int64</code> uniformly distributed in some range that is not within <code>int32</code> limits.</p>

<p>There is <code>randint</code> and <code>random_integers</code> but they work with <code>int32</code>; supplying big upper limit produces <code>high is out of bounds for int32</code>.</p>

<p>How do I generate random <code>int64</code> array with specified range?</p>

<p>Possible solutions:</p>

<ul>
<li>Use floats generator. Won't it have poor resolution in this case?</li>
<li>Generate random bytes, interpret them as <code>int64</code> array and then normalize via <code>lower + x % (upper - lower)</code>. But do <code>int32</code> generation has same normalization? Doesn't it affect uniformity?</li>
</ul>

<p>Didn't I miss some more concise and convenient ways?</p>

<p>Why do random methods only produce <code>float</code>s and <code>int32</code>?</p>