MCPcopy Create free account
hub / github.com/apache/arrow / _random_integers

Function _random_integers

python/pyarrow/tests/parquet/common.py:85–91  ·  view source on GitHub ↗
(size, dtype)

Source from the content-addressed store, hash-verified

83
84
85def _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
94def _range_integers(size, dtype):

Callers 1

_test_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected