Seeded Random Bool

Pure
SeededRandomBool

Returns 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

NameTypeDefaultDescription
Seedint32Seed parameter
Probabilityfloat0.5Probability parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output

Example Use Cases

Example 1

Deterministically spawn enemy variants from a level seed.

Example 2

Reproducible coin-flip decisions for replayable levels.