<div dir="ltr"><div><div><div><div>Hi All,<br><br></div>I've implemented several new random integer functions in <a href="https://github.com/numpy/numpy/pull/6910">#6910</a>, to wit<br><br></div><ul><li>np.random.random_int32</li><li>np.random.random_int64</li><li>np.random.random_intp</li></ul><p>These are the minimum functions that I think we need for the numpy 1.11.0 release, most especially the random_intp function for fuzz testing the mem_overlap functions. However, there is the question of the best way to expose the functions. Currently, they are all separately exposed, but it would also be possible to expose them through a new dtype argument to the current np.random.random_integers function. Note that all all the new functions would still be there, but they could be hidden as private functions. Also, there is the option of adding a complete set comprising booleans, int8, int16, and the unsigned versions. So the two, not mutually exclusive, proposed enhancements are<br></p><ul><li>expose the new functions through a dtype argument to random_integers, hide the other functions<br></li><li>expose the new functions through a dtype argument to random_integers, not hide the other functions<br></li><li>make a complete set of random integer types</li></ul><p>There is currently no easy way to specify the complete range, so a proposal for that would be to generate random numbers over the full possible range of the type if no arguments are specified. That seems like a fairly natural extension.</p><p>Finally, there is also a proposal to allow broadcasting/element wise selection of the range. This is the most complicated of the proposed enhancements and I am not really in favor, but it would be good to hear from others.</p><p>Thoughts?</p><p>Chuck<br></p></div></div></div>