Shuffle Int Array
CallableShuffleIntArrayShuffles an integer array in place using Fisher-Yates. Use Seed=-1 for a random shuffle or any other value for a reproducible one.
Type: Callable (has execution pins)
Category: Fortuna|Array & Collection
Keywords: array & collection
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Array | TArray<int32> | — | Array parameter |
| Seed | int32 | -1 | Seed parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ShuffledArray | TArray<int32> | Array output |
Example Use Cases
Example 1
Randomize card draw order from a deck array.
Example 2
Reproducibly shuffle a spawn index list with a session seed.