Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerroEngine/Perro
/ rand01
Function
rand01
perro_source/api_modules/perro_modules/src/random.rs:201–203 ·
view source on GitHub ↗
(seed: u32)
Source
from the content-addressed store, hash-verified
199
200
#[inline]
201
pub fn rand01(seed: u32) -> f32 {
202
rand_u32(seed) as f32 / u32::MAX as f32
203
}
204
205
#[inline]
206
pub fn rand11(seed: u32) -> f32 {
Callers
7
rand11
Function · 0.85
chance
Function · 0.85
rand_unit_vec2
Function · 0.85
rand_in_circle
Function · 0.85
rand_unit_vec3
Function · 0.85
random_api_typecheck_and_forward
Function · 0.85
scalar_rand_stays_in_range
Function · 0.85
Calls
1
rand_u32
Function · 0.85
Tested by
2
random_api_typecheck_and_forward
Function · 0.68
scalar_rand_stays_in_range
Function · 0.68