# shz_randf

Source: https://sh4zam.com/api/scalar/shz_randf/

> Returns a random floating-point number between 0.0f and 1.0f, using and updating the given seed

```c
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

| Name | Type | Description |
| --- | --- | --- |
| `seed` | `int *` |  |

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::randf`](https://sh4zam.com/api/cpp/#shzrandf)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:255`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L255)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "Miscellaneous"
