# shz_randf_range

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

> Returns a random floating-point number between min and max, using and updating the given seed

```c
SHZ_INLINE float shz_randf_range(int* seed, float min, float max) SHZ_NOEXCEPT;
```

Returns a random floating-point number between `min` and `max`, using and updating the given seed.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `seed` | `int *` |  |
| `min` | `float` |  |
| `max` | `float` |  |

## Returns

`float`

## Availability

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