command /random

Datapacks and command blocks

Gives a random number in a range. “roll” writes the result to everyone in the chat, “value” - only to you.

  • rights - any player
  • Minecraft 26.3
My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

On page 6 sections

Briefly

Examples are verified by the game - copy

  • Roll the dice for everyone
    /random roll 1..6
  • Number from 1 to 100
    /random value 1..100

Rights - any player.

Syntax

This is how the game itself shows it /help random: in angle brackets - what to substitute, in square brackets - optional, through a line - one of.

  • /random value <range> [<sequence>]
  • /random roll <range> [<sequence>]
  • /random reset (*|<sequence>)

Rights

We need a "any player" level: no operator's license. It's written in server consoles without a cross-section.

Part of the command needs more rights:

  • /random reset - A playmaster.
  • /random roll <range> <sequence> - A playmaster.
  • /random value <range> <sequence> - A playmaster.

Numbers

WhatMeaning
command/random
Rightsany player (0)
Where ison the server and in single player with cheats
Subcommandsreset, roll, value

Frequently asked questions

How to use the command/random?

Syntax: /random value <range> [<section>]. For example, /random roll 1.6 is to throw a cube to everyone.

What rights are needed for /random?

We need a "any player" level: no operator's license.

Does the command block work?

Yeah, the command unit's doing right-level 2 commands, and this one doesn't need any more. You don't have to write a line in the block.

Also, date packs and command blocks.

According to Minecraft 26.3, the syntax is a clue to /help from the game itself, right from her command report, each example is checked by a review of the game's commands.