Skip to content

Random

Information
Type Score Function
Namespace moxlib:api/math/random
Objective moxlib.api.math.random
Versions 1.13+

Overview

Generates a pseudo-random number. More info.

Example

function moxlib:api/math/random
Output of scoreboard moxlib.api.math.random
$seed = -223524657
$rng = -949726584

API

Expects

Seed to be used for generating the random number.

  • Score $iteration (optional)

Seed to be used for generating the random number.