Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ gen_f64
Method
gen_f64
nodedb/src/engine/random/csprng.rs:53–55 ·
view source on GitHub ↗
Generate a random f64 in [0.0, 1.0).
(&mut self)
Source
from the content-addressed store, hash-verified
51
52
/// Generate a random f64 in [0.0, 1.0).
53
pub fn gen_f64(&mut self) -> f64 {
54
self.inner.random::<f64>()
55
}
56
}
57
58
#[cfg(test)]
Callers
2
gen_f64_in_range
Function · 0.80
sample
Method · 0.80
Calls
no outgoing calls
Tested by
1
gen_f64_in_range
Function · 0.64