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

Function random_numbers

cpp/src/parquet/test_util.h:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121template <typename T>
122inline void random_numbers(int n, uint32_t seed, T min_value, T max_value, T* out) {
123 std::default_random_engine gen(seed);
124 std::uniform_int_distribution<T> d(min_value, max_value);
125 for (int i = 0; i < n; ++i) {
126 out[i] = d(gen);
127 }
128}
129
130template <>
131inline void random_numbers(int n, uint32_t seed, float min_value, float max_value,

Callers 6

TestMergeMethod · 0.85
random_float16_numbersFunction · 0.85
InitValuesFunction · 0.85
MakePagesFunction · 0.85
GenerateDataFunction · 0.85
GenerateBoundDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected