Seedable RNG

I recommend you to check out the Meta Maze first, as it already assists you a lot with this topic.

If you want to set the RNG’s seed, you can do so by calling:

$dungeonGenerator.setSeed(42)
OR
$mapGenerator.setSeed(42)
OR
$metaMaze.setSeed(42)

If you want to use an RPG Maker Variable as Seed, get the value first and give it to the Plugin:

const seed = $gameVariables.value(VARIABLE_ID)
$dungeonGenerator.setSeed(seed);

If you don’t want to set a specific seed for a single dungeon (without using the Meta Maze), you can do so by calling:

$dungeonGenerator.noSeedableRNG()
OR
$mapGenerator.noSeedableRNG()

When using a Meta Maze, you cannot disable its seedable RNG (which makes sense, I think), but you can assign a random seed when creating it.

$metaMaze.setRandomSeed()
.createMaze(3, 5)
...