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

Function random_Int96_numbers

cpp/src/parquet/test_util.cc:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void random_Int96_numbers(int n, uint32_t seed, int32_t min_value, int32_t max_value,
88 Int96* out) {
89 std::default_random_engine gen(seed);
90 std::uniform_int_distribution<int32_t> d(min_value, max_value);
91 for (int i = 0; i < n; ++i) {
92 out[i].value[0] = d(gen);
93 out[i].value[1] = d(gen);
94 out[i].value[2] = d(gen);
95 }
96}
97
98void random_float16_numbers(int n, uint32_t seed, ::arrow::util::Float16 min_value,
99 ::arrow::util::Float16 max_value, uint16_t* out) {

Callers 2

InitValues<Int96>Function · 0.85
GenerateData<Int96>Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected