7 lines
644 B
Lua
7 lines
644 B
Lua
---@diagnostic disable: missing-return, lowercase-global
|
|
|
|
---@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
|