
RNG with game time
Java data pack listed for Minecraft 1.13–1.20. Downloads from the MC Java Mods app on Android.
⬇ Download on ModrinthThis is just a small datapack that adds a rng function.
Description:
This functions generates a random number by using only the game time, an offset value, and the range value that the player has to set (defaults to 1 if the range is none, 0 or negative)
Setting RNG range:
You can set the range value with : /scoreboard players set rng.range rng <range value> (the number generated can have all values from 0 to rng.range -1)
Generate a number:
To generate a number, execute the command /function rng:rng. The Number gets stored in the scoreboard rng.rng.
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.13, 1.13.1, 1.13.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
- Downloads as rng.zip
- Download size: 2 KB
- Download link checked 19 Oct 2026 — working
These come from our own check of the pack file, not from the source page.