MCPcopy 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]
296pub fn rand11_stream(seed: u32, index: u32) -> f32 {
297 rand01_stream(seed, index) * 2.0 - 1.0
298}
299
300#[inline]
301pub fn rand_unit_vec2(seed: u32) -> (f32, f32) {

Callers 2

Calls 1

rand01_streamFunction · 0.85

Tested by 2