anarchy

Description

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.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

2026-01-04 02:08 UTC

1.0-2 Don't crash on import 🔗

Fixed crash on import due to both broken check for bit library & resulting attempt to use os.exit. What was I even thinking?

2025-12-31 10:26 UTC

1.0-1 Initial version 🔗

Initial version.

Note that some rng-chain-breaking changes to prng may be coming in the future due to poor short-cycles performance of current implementation. If cycle length is an issue, you can always use cohort_shuffle with any desired cohort size as an alternate to prng.

All releases

Information

Provides

anarchy

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
anarchy
Languages
English
License
BSD-3-Clause
Maintenance State
Beta
Added
2025-12-31 10:19 UTC
Maintainers
solsword