Searched refs:rand_range (Results 1 – 6 of 6) sorted by relevance
27 static long rand_range(long min, long max) in rand_range() function74 rval = (min > max) ? rand_range(max, min) : rand_range(min, max); in main()
37 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()
40 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()
125 pub fn rand_range(&mut self, range: Range<u32>) -> u32 { in rand_range() method242 pub fn rand_range(&mut self, range: Range<u64>) -> u64 { in rand_range() method427 let in_range = r1.rand_range(low..high); in test_randrange32()448 let in_range = r1.rand_range(low..high); in test_randrange64()
215 pub fn rand_range(&self, rnd: &mut BigNumRef) -> Result<(), ErrorStack> { in rand_range() method1400 range.rand_range(&mut result).unwrap(); in test_rand_range()
941 const uint32_t rand_range = (*num_used - 1) * (*num_used); in HistogramCombineStochastic() local950 const uint32_t tmp = MyRand(&seed) % rand_range; in HistogramCombineStochastic()