Jump to content

/Roll: Difference between revisions

From fCraft Wiki
No edit summary
No edit summary
Line 12: Line 12:
|console=Yes
|console=Yes
|}}
|}}
Picks a random number in the given range, and prints it. Everyone on the server can see the rolled number, so please avoid spamming this command.


==<code>/Roll</code>==
==<code>/Roll</code>==

Revision as of 11:39, 6 June 2011

Command
/Roll

Picks a random number

Usage

/Roll

/Roll Max

/Roll Min Max

CategoryChat
Required permissionsChat
Usable from console?Yes
Introduced in[[Version history#{{{v}}}|fCraft {{{v}}}]]


Picks a random number in the given range, and prints it. Everyone on the server can see the rolled number, so please avoid spamming this command.

/Roll

Prints a random number between 1 and 100 (inclusive). All numbers have 1% chance of rolling.

/Roll Max

Prints a random number between 1 and specified Max number (also inclusive). Percent chance of any number rolling is 100/(Max-1).

/Roll Min Max

Prints a random number between given Min and Max numbers (also inclusive). Percent chance of any number rolling is 100/(Max-Min).