How do Minecraft seeds work? [duplicate]

How do Minecraft seeds work? [duplicate] - Photo of a Man Working on a Field

I am completely new to Minecraft. Where can I learn more about how Minecraft's so-called "seeds" work?

(I imagine the Minecraft "world" as a cellular automaton, and the "seed" as an somehow encoded initial configuration from which by certain rules an initial scenery is calculated. But this is most probably not the (whole) truth.)



Best Answer

If you do some research about pseudorandom generators (like rand() in c++), you'll find that they need to be seeded (with srand(some number) in c++).

With the same seed, considering the implementation meaningless, they are guaranteed to give the exact same numbers...




Pictures about "How do Minecraft seeds work? [duplicate]"

How do Minecraft seeds work? [duplicate] - Man Working on a Field
How do Minecraft seeds work? [duplicate] - White Metal High-rise Viewing Deck Building
How do Minecraft seeds work? [duplicate] - An Elderly Woman Using a Winnowing Basket to Clean the Grains



How do you duplicate Minecraft Seeds?

Setting and reusing a seed from one world generates the same world. Either a number or a word/phrase can be used, including negatives.

Do Minecraft Seeds generate the same world?

Since all Minecraft worlds are infinite who's to say every world isn't the same seed? That's like a 10% chance of that ever happening.



Minecraft 1.19+ - ALL WORKING DUPLICATION GLITCHES TUTORIAL! XBOX,PE,WINDOWS,SWITCH,PS




More answers regarding how do Minecraft seeds work? [duplicate]

Answer 2

When you create a world, a seed is chosen. You can type in one yourself to be used, or leave it blank to use the current system time:

enter image description here

The string you type is converted into an integer, which is why, even if you put a seed with letters in it, it'll always appear as a number in game with F3 or /seed.

This seed is then used for all of Minecraft's pseudorandom calculations in generating the level. These functions take the seed, then map it to a seemingly random value, but always the same value.

Unlike a cellular automaton, because of the random function, the input seed has no real relation to the output level. "1234" and "1235" will not produce similar levels, and there's no patterns like "lots of 5's give you jungles", although it may be by chance that "5555" spawns you in a jungle.

You can learn more about seeds on the wiki page:

http://minecraft.gamepedia.com/Seed_(level_generation)

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Quang Nguyen Vinh, Quang Nguyen Vinh, Pixabay, Mehmet Turgut Kirkgoz