Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerroEngine/Perro
/ rand11_stream
Function
rand11_stream
perro_source/api_modules/perro_modules/src/random.rs:296–298 ·
view source on GitHub ↗
(seed: u32, index: u32)
Source
from the content-addressed store, hash-verified
294
295
#[inline]
296
pub fn rand11_stream(seed: u32, index: u32) -> f32 {
297
rand01_stream(seed, index) * 2.0 - 1.0
298
}
299
300
#[inline]
301
pub fn rand_unit_vec2(seed: u32) -> (f32, f32) {
Callers
2
random_api_typecheck_and_forward
Function · 0.85
stream_rand_stays_repeatable
Function · 0.85
Calls
1
rand01_stream
Function · 0.85
Tested by
2
random_api_typecheck_and_forward
Function · 0.68
stream_rand_stays_repeatable
Function · 0.68