Seeded Random Bool
PureSeededRandomBoolReturns a deterministic bool with the given probability of being true, driven by a seed.
Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Seed | int32 | — | Seed parameter |
| Probability | float | 0.5 | Probability parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | bool | ReturnValue output |
Example Use Cases
Example 1
Deterministically spawn enemy variants from a level seed.
Example 2
Reproducible coin-flip decisions for replayable levels.