The rmgen2 library contains miscellaneous functionality for some random maps.
Setup
The file setup.js contains several helper functions and variables.
Gaia
The file gaia.js contains functionality to place entities and actors for the neutral player - called Gaia.