Files
wow_Meta/api/RandomRoll.lua
2025-05-04 15:15:00 +02:00

8 lines
653 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param min number,string
---@param max number,string
---Initiates a public, server-side "dice roll". Used in the default UI to implement the /roll chat command; when called, the server generates a random integer and sends it to the player and all others nearby (or in the same party/raid) via a CHAT_MSG_SYSTEM event. (The server message is formatted according to the global RANDOM_ROLL_RESULT; e.g. "Leeroy rolls 3 (1-100)".) For random number generation that does not involve the server or send visible messages to other clients, see math.random.
function RandomRoll(min, max) end