Method IterateSeed
IterateSeed(uint, uint)
Generates new a new non-zero random state by deterministically hashing a base seed with an iteration index
Declaration
public static uint IterateSeed(uint index, uint baseSeed)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | Usually the current scenario iteration or framesSinceInitialization |
| uint | baseSeed | The seed to be offset |
Returns
| Type | Description |
|---|---|
| uint | A new random state |