shz_randf
SHZ_INLINE float shz_randf(int* seed) SHZ_NOEXCEPT;Returns a random floating-point number between 0.0f and 1.0f, using and updating the given seed.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
seed | int * |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::randf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:255 - Module: Scalar, section "Miscellaneous"