Home
last modified time | relevance | path

Searched refs:rand_range (Results 1 – 6 of 6) sorted by relevance

/external/ltp/testcases/lib/
Dtst_random.c27 static long rand_range(long min, long max) in rand_range() function
74 rval = (min > max) ? rand_range(max, min) : rand_range(min, max); in main()
/external/rust/crates/criterion/src/stats/bivariate/
Dresamples.rs37 let i = self.rng.rand_range(0u64..(self.data.0.len() as u64)) as usize; in next()
47 let j = self.rng.rand_range(0u64..(self.data.0.len() as u64)) as usize; in next()
/external/rust/crates/criterion/src/stats/univariate/
Dresamples.rs40 let idx = rng.rand_range(0u64..(self.sample.len() as u64)); in next()
48 let idx = rng.rand_range(0u64..(self.sample.len() as u64)); in next()
/external/rust/crates/oorandom/src/
Dlib.rs125 pub fn rand_range(&mut self, range: Range<u32>) -> u32 { in rand_range() method
242 pub fn rand_range(&mut self, range: Range<u64>) -> u64 { in rand_range() method
427 let in_range = r1.rand_range(low..high); in test_randrange32()
448 let in_range = r1.rand_range(low..high); in test_randrange64()
/external/rust/crates/openssl/src/
Dbn.rs215 pub fn rand_range(&self, rnd: &mut BigNumRef) -> Result<(), ErrorStack> { in rand_range() method
1400 range.rand_range(&mut result).unwrap(); in test_rand_range()
/external/webp/src/enc/
Dhistogram_enc.c941 const uint32_t rand_range = (*num_used - 1) * (*num_used); in HistogramCombineStochastic() local
950 const uint32_t tmp = MyRand(&seed) % rand_range; in HistogramCombineStochastic()