# InitState(uint)

> Initialized the state of the Random instance with a given seed value. The seed must be non-zero.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public void InitState(uint seed = 1851936439)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The seed to initialize with.
