kidfearless / Foundry-TrueRNG

MIT License
6 stars 4 forks source link

Local Pregenerated File Archive support #4

Closed apoapostolov closed 3 years ago

apoapostolov commented 3 years ago

Probably low priority as a free account is perfectly serviceable, but still very future-proof.

Random Org provides daily pregenerated random data at https://archive.random.org/

Possibly, this data can be used to generate months if not years of RP random rolls with a single download, rather than rely on the API and risk the service not responding for some reason (site down, etc.) It would be great if we could use local random data instead of the Random.org service.

kidfearless commented 3 years ago

This can be added sometime in the future. Probably will pull in the historic data with the initial load of random numbers.

kidfearless commented 3 years ago

After lookin into it more, it appears that the Pregenerated File Archive format is intended for random integers not random floating point numbers. The data I'd receive could be any floating point number including invalid numbers. Scaling the integers down from int.MinValue -> int.MaxValue to 0.0 -> 1.0 could potentially cause some issues.

Due to that issue this feature won't be added.