# MISC::SET_RANDOM_SEED

- **Hash:** `0x5CD7A49104AFCB6B`
- **Namespace:** MISC
- **Runtime name (Lua/JS):** `SetRandomSeed`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MISC/SET_RANDOM_SEED

## Signature

```c
void SET_RANDOM_SEED(int seed);
```

## Parameters

- `seed` (`int`)

## Returns

`void`

## Usage

### Lua

```lua
SetRandomSeed(seed)

-- always available, by hash
Citizen.InvokeNative(0x5CD7A49104AFCB6B, seed)
```

### JavaScript

```js
SetRandomSeed(seed);

// by hash
Citizen.invokeNative('0x5CD7A49104AFCB6B', seed);
```

### C#

```csharp
Function.Call((Hash)0x5CD7A49104AFCB6B, seed);
```

*Sources: alloc8or RDR3 NativeDB.*
