Jump to content

/Roll: Difference between revisions

From fCraft Wiki
Rwojy (talk | contribs)
mNo edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{CommandBox
{{CommandBox
|name=/Roll
|name=Roll
|purpose=Fun
|purpose=Picks a random number
|uses=Fun commands
|uses=/Roll
 
/Roll Max
 
/Roll Min Max
|cat=Chat
|cat=Chat
|aliases=N/A
|aliases=
|perm=Chat
|perm={{rperm|Chat}}
|console=Yes
|console=Yes
|v=0.200
|}}
|}}
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>==
:Prints a random number between 1 and 100 (inclusive). All numbers have 1% chance of rolling.


===/Roll base===
==<code>/Roll Max</code>==
'''/Roll''' is a fun/games command. The base usage is as follows.<br>
:Prints a random number between 1 and specified Max number (also inclusive). Percent chance of any number rolling is <code>100/(Max)</code>.
<code> (input) /roll  (output) Player1 rolled 50 (1,100) </code><br>


===/Roll Minimum and/or Maximum input===
==<code>/Roll Min Max</code>==
Roll can be used with a specified maximum number, or both a minimum and a maximum. The maximum number is limited to 2^31-1, or 2,147,483,647.<br>
:Prints a random number between given Min and Max numbers (also inclusive). Percent chance of any number rolling is <code>100/(Max-Min+1)</code>.
<code> (input)/roll 50 (output) Player1 rolled 33 (1,100)<br>
(input /roll 187 366  (output) Player1 rolled 265 (187,366) </code>

Latest revision as of 04:07, 22 August 2012

Command
Roll

Picks a random number

Usage

/Roll

/Roll Max

/Roll Min Max

CategoryChat
Required permissionsChat
Usable from console?Yes
Introduced infCraft 0.200

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).

/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+1).