Seeded Random Int

Pure
SeededRandomInt

Returns a deterministic integer in [Min, Max] driven by a seed. The same seed always produces the same value.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
Seedint32Seed parameter
Minint32Min parameter
Maxint32Max parameter

Outputs

NameTypeDescription
ReturnValueint32ReturnValue output

Example Use Cases

Example 1

Assign consistent stat rolls from a character seed.

Example 2

Pick a reproducible random index into a name table.