Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerroEngine/Perro
/ rand11
Function
rand11
perro_source/api_modules/perro_modules/src/random.rs:206–208 ·
view source on GitHub ↗
(seed: u32)
Source
from the content-addressed store, hash-verified
204
}
205
206
#[inline]
207
pub fn rand11(seed: u32) -> f32 {
208
rand01(seed) * 2.0 - 1.0
209
}
210
211
impl RandRangeValue for f32 {
Callers
3
rand_unit_vec3
Function · 0.85
random_api_typecheck_and_forward
Function · 0.85
scalar_rand_stays_in_range
Function · 0.85
Calls
1
rand01
Function · 0.85
Tested by
2
random_api_typecheck_and_forward
Function · 0.68
scalar_rand_stays_in_range
Function · 0.68