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

Function random_bools

cpp/src/parquet/test_util.cc:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void random_bools(int n, double p, uint32_t seed, bool* out) {
80 std::default_random_engine gen(seed);
81 std::bernoulli_distribution d(p);
82 for (int i = 0; i < n; ++i) {
83 out[i] = d(gen);
84 }
85}
86
87void random_Int96_numbers(int n, uint32_t seed, int32_t min_value, int32_t max_value,
88 Int96* out) {

Callers 1

GenerateData<bool>Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected