Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
54
pub trait IterBits {
Callers
3
signal_random
Method · 0.80
steal_from_siblings
Method · 0.80
random_tree_inner
Function · 0.80
Calls
1
next
Method · 0.80
Tested by
no test coverage detected