# Sandbox.SandboxSystemExtensions.Float

## Overload 1

```csharp
static float Float(System.Random self)
```

Returns a random float between 0 and 1

### Parameters

- `self` (`System.Random`)

### Returns

`float`

## Overload 2

```csharp
static float Float(System.Random self, float min, float max)
```

Returns a random float between min and max

### Parameters

- `self` (`System.Random`)
- `min` (`float`)
- `max` (`float`)

### Returns

`float`

## Overload 3

```csharp
static float Float(System.Random self, float max)
```

Returns a random float between 0 and max (or 1)

### Parameters

- `self` (`System.Random`)
- `max` (`float`)

### Returns

`float`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
