MCPcopy Create free account
hub / github.com/apache/arrow-rs / random

Method random

arrow/src/util/data_gen.rs:493–498  ·  view source on GitHub ↗

Generate a random value of the type

(rng: &mut R)

Source from the content-addressed store, hash-verified

491
492 /// Generate a random value of the type
493 fn random<R: Rng>(rng: &mut R) -> Self::Native
494 where
495 Self::Native: SampleUniform,
496 {
497 Self::gen_range(rng)
498 }
499}
500
501impl RandomTemporalValue for TimestampSecondType {

Callers 15

criterion_benchmarkFunction · 0.80
create_primitive_arrayFunction · 0.80
create_f16_arrayFunction · 0.80
create_f32_arrayFunction · 0.80
create_f64_arrayFunction · 0.80
criterion_benchmarkFunction · 0.80

Implementers 1

data_gen.rsarrow/src/util/data_gen.rs

Calls

no outgoing calls

Tested by 4

test_i256_fuzzFunction · 0.64
test_slices_fuzzFunction · 0.64
test_list_selection_fuzzFunction · 0.64
generate_random_valueFunction · 0.64