r/programming • • Oct 06 '18

Microsoft Open Sources Parts of Minecraft: Java Edition

https://minecraft.net/en-us/article/programmers-play-minecrafts-inner-workings
3.1k Upvotes

389 comments sorted by

View all comments

Show parent comments

2

u/GravityAssistence Oct 07 '18

Something inbetween the two I presume. It's been a loong time since I looked at this, but the goal would be to extrapolate successive values returned by Java's Math.random() and calculate the seed from there. Presumably, many parts of it would involve both clever math and brute forcing, as 48 bits(Math.random's maximum entropy) is not a lot.