#Random.org RNG

14 messages · Page 1 of 1 (latest)

night portal
#

Replaces (or better: wrap) the internal RNG of Minecraft to try at first to fetch values of Random.org API before resorting to use its vanilla generators.

If a valid API key is present on the config, and there is quota available, the mod will fetch the random data required for the RNG. If there isn't available quota or the game/server is offline or otherwise unable to connect with random.org, it would try to fetch any pregenerated binary files manually downloaded by the player beforehand to generate the values in a semi-true random way; if none of the above is available, fallback to the vanilla RNG.

Idea partially based on KillTheRNG and Faster Random

cerulean dust
#

calling an api every time a random number is needed sounds really really slow and inefficient - Minecraft uses RNG a lot. is there an advantage to this over the base rng or faster random

#

like you would essentially be calling it every tick for randomtick

dense kite
#

Couldn't you get like a few numbers on start and the just constantly fetch more off-thread when needed?

cerulean dust
#

that's true, but you would need to probably be constantly fetching or fetch an absolute ton in the beginning

dense kite
#

Yeah, heavy work

cerulean dust
#

for not much benefit

dense kite
#

Indeed

cerulean dust
#

i think you would probably be rate limited by the api

dense kite
#

true lmao

#

unless you can fetch like a fuckton of numbers in one request

cerulean dust
#

that in itself would take some time too tho

#

i don't see any reason to use an API for randomness lol

dense kite
#

yeah extremely inefficient