Seed

**Seeds** are a mechanism used to randomly generate floors.

## Description

A seed is a random string of numbers used in level-generating algorithms to procedurally generate and create each floor in *Baldi's Basics Plus*. After completing the Hide-and-Seek mode once, the player can put in a specific seed after pressing the "**Seed: Random**" text to remove the "**Random**" text, then inputting a seed number between **-2147483615** and **2147483615**. In Endless Mode - Random, the player can input a custom seed, regardless if they have completed Hide-and-Seek or not.

## Level-building algorithm codes

When accessing *Baldi's Basics - Challenges Demo* code via DnSpy, there is an algorithm for generating all the different types of locations:

* `CafeteriaCreator` (`@0200015C`)
* `ClassBuilder` (`@02000072`)
* `FacultyBuilderStandard` (`@02000079`)
* `HallBuilder` (`@02000106`)
* `PlaygroundSpecialRoom` (`@02000161`)
* `MysteryRoom` (`@0200003A`)

## Rare seeds

You can read the rare seeds here: BB+ v0.3.8 Seed Hub Full List/Archive.

Some V0.3.8 rare seed highlights:

* **398162418** and **-398162418** (Floor 1): Contains 2 notebooks instead of 4
* **513909555** and **-513909555** (Floor 1): Fastest seed possible
* **674514396** and **-674514396** (Floor 1): 3 BSODA machines right next to each other at spawn
* **1575968803** and **-1575968803** (Floor 1): Detention room has 10 windows
* **2028708321** and **-2028708321** (Floor 1): Elevator has a community poster (the posters made by the community) in it
* **505852387** (Floor 2): A window and a detention table near the elevator
* **736872833** (Floor 2): Contains 5 notebooks instead of 7
* **-1399353531** (Floor 2): Has the tiniest classroom
* **-1724039019** (Floor 2): West elevator is poking out of a wall
* **-923088067**: Floor 1 has three notebooks, floor 2 has six notebooks
* **-2016742952** (Floor 2): Has 3 apple trees in the Playground
* **1605994211** (Floor 2): Has no math machines
* **-1782229549** (Floor 3): Elevator and cafeteria out of bounds
* **-1037397230** (Floor 1): The notebooks are close together (\*I’m not totally sure that yet, but this might be edited in the future\*)

## Trivia

### *Baldi's Basics Plus*

* Even though pre-made maps such as Endless Mode - Medium and Challenge Mode always have the same map, the seeds are still different.
* There are exactly 4,294,967,231 possible seeds.
* Some seeds generate debug rooms if there are no proper spaces to generate classrooms. Their color on the map is black like the library prior to V1.2 in the *Kickstarter Exclusive Demo*.
* In V0.1, it was possible to enter a seed number lower than **-2147483615** and higher than **2147483615**. Inputting the seed outside the range would crash the game.
* Prior to V0.1.3, playing the game with the seed **-** would crash the game, but since this version, it will generate a random seed.
* In V0.3.4, only one seed (**1243259247**) was found that seems to be impossible to beat as there was no way to exit the cafeteria in this seed unless using Dangerous Teleporters, as the cafeteria is separate from the map itself. However, there was one swinging door, but it collided with another faculty door. It could be a bug that causes the map to generate improperly.
* On Floor 1, prior to V0.3, the seed **767676767** had all five notebooks close enough to Baldi that it was possible to beat Floor 1 without triggering him.
* In V0.3.5, it was impossible to paste copied seeds in the custom seed input.
* Since V0.3.6, pasting the seed only works if copied text only consists of numbers or a dash (only the first character) and the number must be in the valid range.

### *Baldi's Basics - Challenges Demo*

* The seed for the Stealthy Challenge is listed as 99 in *Challenges Demo*.