Random
Uniform random decimal in [0, 1). A building block for probability
gates and randomized flavor. For typed integer or decimal ranges, reach
for RandomRange instead.
Category: Math
Returns: decimal
Signature
Random()
No arguments.
Examples
Random() < 0.3 // 30% chance gate
Random() < (luck_score / 100) // probability scales with a variable
If(Random() > 0.5, "path_a", "path_b")
// 50/50 branch on a conditional
Notes
The random stream is seeded per session. The runtime captures the
seed in save snapshots so a snapshot-restored game replays the same
sequence. Two calls to Random() in the same evaluation produce
different values; the sequence is deterministic given the seed.
For deterministic per-slot picks (cosmetic flavor that should stay stable within a slot), see Pick and Cycle.