Open vladinator1000 opened 4 months ago
The f32
and f32_normalized
methods don't accept ranges (this is modelled from the fastrand
API). This is something I'd need to look at in more detail for turborand
, but there's suggestions here for working around this: https://github.com/Bluefinger/turborand/issues/37
If the API surface for bevy_turborand
is insufficient for your needs, do consider https://github.com/Bluefinger/bevy_rand as an alternative (configure it via feature flags to use WyRand
if you want to use the same fast PRNG algorithm as bevy_turborand
.
Hi there, just trying the library and it seems
f32
doesn't accept ranges?Getting this error
When I try using u32 it also seems to not support ranges.
the trait bound `u32: Neg` is not satisfied the following other types implement trait `Neg`: &f128 &f16 &f32 &f64 &i128 &i16 &i32 &i64 and 12 others
How would you generate floating point numbers from arbitrary ranges? I would love to be able to do this