In minecraft, before creating a world you have an option to input a seed. The algorithm takes the seed and creates a completely unique world. How does this work?
It gives the seed to a pseudorandom number generator (PRNG) and uses that PRNG to generate the world.
Giving the same seed will give the same sequence from the PRNG and thus generate the same world.