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 $noiseMapGenerator.setSeed(42) OR $metaMaze.setSeed(42)
If you want to use a RPG Maker Variable as Seed, get the value first and give it to the Plugin:
let 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 $noiseMapGenerator.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) ...