A Short Demystification of the 'Map Seed'

A lot of people ask us what the 'map seed' is, so I decided to post a really short explanation.

Computers are really bad at generating random values, so clever engineers have invented algorithms that create sequences that look random. The problem is that these algorithms will always give the same sequence of values if they begin from the same starting point. This starting point is called the "seed."

For example, this code will always output the value '-1155869325', so it's actually not random at all:

   Random seededRandom = new Random(1);

In Minecraft Beta 1.3, we added the option to select the seed for the map generator's sequence of "random" values. In other words, if you create a world with a certain seed, it will look identical to other worlds created with the same seed. If you leave the seed blank, the game will use the current computer clock to select a new seed.

You can both enter a number or a text string. When you enter a text string the game will pick the string's hash code to get the seed. For programmers, that is:

    String seedString = "Hello World";
    int seed = seedString.hashCode();

The map seed is only used by the world generator, and not for other stuff (such as spawn location, how many items mobs drop etc).