# Random

TIP

  • random(<minimum>, <maximum>)
  • Returns random number between two numbers.

# Parameters

  • <minimum> The minimum number as int
  • <maximum> The maximum number as int

# Example

1: $randomX$ = random(-500, 500)
2: $randomZ$ = random(-500, 500)
3: teleport($player$, $randomX$, $y$, $randomZ$)
4: sendMessage($player$, "Teleported to a random position.")