Anarchy is a multi-language PCG library that is designed for incremental & reversible random number generation, which was designed in part for the generate-map-blocks-on-demand system of pseudo-infinite-world voxel games.
Main documentation for the Lua version is here
Becuase Luanti uses LuaJIT, we're including the 32-bit version that's compatible.
Documentation for the anarchy32 lua library is here
Source code for the library (all languages) is available here
This mod just uses the anarchy32_global.lua as its init.lua which ends up exporting a single global "anarchy" table.