how do “seeds” work in video games such as Minecraft?

1.17K viewsOtherTechnology

For example, how does an infinitely randomized world like Minecraft manage to generate me an identical world to my friend with just a handful of numbers that they send me?

In: Technology

23 Answers

Anonymous 0 Comments

Someone will make a formula that takes a number and makes a new one.

Here’s a silly one I’ll make up for example.

Take a number to start with, 506. That’s the seed for the formula. Reverse it so you get 605. Multiply those together. 306,130.

Just use the first three digits, since my formula only cares about three digit numbers. 306 is the new number.

Now I can make another number from 306.

306×603=184,518

And I can keep going…

184×481=88,504

885×588=520,380

520×025=13,000

If I use the same formula and same seed number 506, I’ll always get 506, 306, 184, 885, 520, 130…

If I use a different seed number, like 222, I’ll get… 222, 492, 144, 635, 340, 146…

A good formula can make numbers that are random enough, while still following a pattern that’s difficult to work out

You are viewing 1 out of 23 answers, click here to view all answers.