Custom Command
FunctionsRandom Functions

$resetRandom

The $resetRandom function clears the stored seed used by the $random function, effectively resetting the random number generator. This means that subsequent calls to $random will generate a new sequence of random numbers, potentially different from the previous sequence before the reset. This is useful when you want to ensure a fresh set of random numbers.

Usage

$resetRandom

Explanation:

When you use $random multiple times without resetting, it might produce the same number due to how it's seeded. $resetRandom ensures each subsequent $random call behaves truly randomly by clearing that internal seed.

Example:

Member
9/5/2026

!!exec Picked Number: $random[1;6] Another Picked Number: $random[1;6] $resetRandom Picked Number After Reset: $random[1;6]

Custom Command
APP
9/5/2026

Picked Number: 5 Another Picked Number: 5 Picked Number After Reset: 3

Function difficulty: Easy

On this page