MCPcopy 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]
207pub fn rand11(seed: u32) -> f32 {
208 rand01(seed) * 2.0 - 1.0
209}
210
211impl RandRangeValue for f32 {

Callers 3

rand_unit_vec3Function · 0.85

Calls 1

rand01Function · 0.85

Tested by 2