← All docs

random_int() — internals

Compiler internals for random_int(): lowering path, type checks, and runtime helpers.

random_int() — internals

Where it lives

Lowering notes

  • Lowers random_int() over an inclusive integer range.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function random_int(int $min, int $max): int

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references