MCPcopy Create free account
hub / github.com/NthTensor/Forte / next_usize

Method next_usize

src/util.rs:49–51  ·  view source on GitHub ↗

Return a value from `0..n`.

(&self, n: usize)

Source from the content-addressed store, hash-verified

47
48 /// Return a value from `0..n`.
49 pub fn next_usize(&self, n: usize) -> usize {
50 (self.next() % n as u64) as usize
51 }
52}
53
54pub trait IterBits {

Callers 3

signal_randomMethod · 0.80
steal_from_siblingsMethod · 0.80
random_tree_innerFunction · 0.80

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected