(size, dtype)
| 83 | |
| 84 | |
| 85 | def _random_integers(size, dtype): |
| 86 | # We do not generate integers outside the int64 range |
| 87 | platform_int_info = np.iinfo('int_') |
| 88 | iinfo = np.iinfo(dtype) |
| 89 | return np.random.randint(max(iinfo.min, platform_int_info.min), |
| 90 | min(iinfo.max, platform_int_info.max), |
| 91 | size=size, dtype=dtype) |
| 92 | |
| 93 | |
| 94 | def _range_integers(size, dtype): |