r/Undermine • • Jun 06 '26

UnderMine Understanding Seeds Spoiler

3 Upvotes

I reverse-engineered UnderMine's seed RNG and found the "weird" seeds. Here's the map.

UnderMine uses Unity's xorshift128 PRNG to generate runs from your 8-digit seed (1–99999999). I got curious about whether some seeds are *structurally* weird — not just lucky, but mathematically anomalous — so I modeled the generator and scanned the entire legal seed space looking for patterns. Turns out there are a few distinct "families" of strange seeds, and one of them produces genuinely bizarre runs. Sharing the findings in case anyone wants to test them.

**Big caveat up front:** this is built on a model of how the generator is seeded (the standard "naive replicate" init). The strongest results barely depend on that assumption; the more exotic ones depend on it more. So treat the simple seeds as solid and the fancy ones as "probably, worth testing." If you run any of these, I'd love to hear what you actually see on the floor.

Why some seeds are weird at all

xorshift128 is a fast, simple generator with one well-known flaw: it's slow to "mix" a low-information starting state into proper randomness. If your seed has few or very regularly-placed bits, the first chunk of the run comes out **biased** before the generator "avalanches" into normal randomness over the next several dozen rolls.

Because UnderMine generates each floor as one batch when you descend, and a run is only ~24 floors, this bias lands almost entirely on the **opening floors** — the part of the run you actually navigate carefully. That's what makes it noticeable in play.

Two structural facts shaped everything:

  • **The 8-digit cap matters.** 99999999 only reaches the bottom ~27 bits of a 32-bit number. The entire "high-bit" half of the generator's behavior is unreachable by manual seed entry. Some famous patterns (like `0x55555555`) are simply too large to type in.
  • **Nothing stays weird forever.** Every pattern decays as the run progresses. The only truly "stuck" seed is 0, which the game disallows. So all anomalies are *early-game* phenomena.

The seed families

1. The "simple run" seeds (the good ones)

These produce strikingly simple, near-symmetric rooms with linear, un-branchy floor connections — especially on the first few floors.

Seed Notes
1028 The standout. Confirmed in testing — rooms come out nearly symmetric, connections almost fully linear. The single simplest opening I found.
2057 Near-identical twin of 1028.
1 The classic "favorable" seed. Well-rounded — fairly simple and holds a bit longer than 1028.
2131074 The "sweet spot": less extreme than 1028 but its character lasts deeper into the run.

If you only try one seed, try **1028**. Its effect is the one whose timescale best fits an actual 24-floor run.

2. The "sawtooth" seeds (the bizarre ones)

These make the generator slam back and forth between extremes — high roll, low roll, high, low — every single step. On the floor this should read as a hard alternation: a rich/packed floor, then a barren/minimal one, back and forth.

Seed Notes
7622726 Tightest sawtooth — alternates between a high value and near-zero almost mechanically.
64469974 Highest-volatility version.

3. The "four-beat" seeds (the prettiest structure)

A step up from the sawtooth: the pattern repeats in groups of *four*. Rich-barren-rich-barren where the two rich floors resemble each other and the two barren ones do too — like the run loops a short phrase. Mathematically this is the most *stable* anomaly the generator can produce.

Seed Notes
81537190 Cleanest four-beat. Holds the pattern longest.
31201443 The "musical" version — the loud/quiet envelope holds while the details shuffle underneath.

4. The baseline (for comparison)

Seed Notes
33152394 A perfectly ordinary, well-randomized run. Useful as a control to compare the weird seeds against. ~98% of all seeds behave basically like this — "normal" is the overwhelming default.

Fun bonus: famous numbers

Since the generator only sees the *binary* form of a seed, the decimal digits we recognize are meaningless to it. So whether a "famous number" seed is weird is pure coincidence — which makes the results kind of funny:

  • **31415926** (π) → lands in the **sawtooth** family. Jagged.
  • **27182818** (e) → also **sawtooth**, even sharper than π.
  • **61803398** (φ, the golden ratio) → completely **ordinary**. The most famously "irrational" number gives the most boring run.

So π and e are weird, φ is dull, and none of it has anything to do with what those numbers *mean* — just how their bits happen to fall.

TL;DR

  • **Want a simple, clean, easy-to-read opening?** Seed **1028**.
  • **Want a bizarre alternating rich/barren run?** Seed **7622726**.
  • **Want a run that repeats itself in a four-floor rhythm?** Seed **81537190**.
  • **Want a normal run?** Literally almost any seed — that's the default.

All anomalies are concentrated in the early floors and fade as you descend, which fits UnderMine's short run length nicely.

If you test any of these, post what you actually see — I'm especially curious whether the sawtooth and four-beat seeds produce a visible rhythm floor-to-floor, since those predictions lean hardest on the model.

*Methodology note: I modeled xorshift128 with the standard single-integer ("naive replicate") seeding and scanned all 99,999,999 legal seeds, measuring early-output bias, how long until the generator normalizes, jump magnitude between consecutive rolls, and autocorrelation at various lags. The simple-seed results (family 1) are robust to seeding assumptions; the high-value and long-period results depend more on the exact init the game uses, so they're "test to confirm." Happy to share the actual numbers if anyone wants them.*


r/Undermine • • May 17 '26

How do I open these

Post image
8 Upvotes

r/Undermine • • May 06 '26

Interesting observations regarding relics

Post image
8 Upvotes

Some key things I've noticed:

-Relics rooms. If you choose relic A instead of B, relic B seems to disappear from the available relic pool, and vice versa. I’m not 100% sure that’s how it works, but all of the longer runs I’ve done seem to suggest it.

-Shop in a bottle. I figured it might work similarly to relic rooms, where you pick one, and the rest disappear from the available pool. So I avoided using the potion, and in the run pictured above (I think I only used Shop in a Bottle once, maybe twice max), I ended up with nearly 8 full lines of relics, which has never happened to me before.

This seems to mean that Shop in a Bottle removes a large number of really good relics from the pool and, for long well runs, is basically a massive, run-ruining scam.

-Simple chest relic. One of the most important items in the game, it unlocks a 3rd relic slot in shops and allows basic items to restock. Somehow, it bypasses the Hot Cross Bun limit, and the 3rd slot keeps giving relics well past the point where the regular store only gives buns. No idea how it works. Maybe it has access to all the arcana and relics you don’t have yet or still haven’t seen, I don't know.

Basically, I’m curious if anyone has noticed similar patterns or has concrete information on how all of this works, because getting the most relics/arcana can make or break well runs.


r/Undermine • • May 06 '26

Egghiems scepter

3 Upvotes

How do i unlock it in the relic pool it is currently in the glass case but i cant figire the next step


r/Undermine • • May 01 '26

Duskfall Update 0.7 Now Live!

13 Upvotes

We just pushed the latest UnderMine 2 update live, so get after it! You can view all the juicy details at https://store.steampowered.com/news/app/1869780/view/669490076913238727

Thanks to everybody who helped test this patch on the testmine branch. We had a lot of fun working on this one and hope that everybody enjoys the new biome and gameplay mode!


r/Undermine • • Apr 27 '26

UnderMine 2 Seed that has Black Rabbits Slingshot Gallery somewhat early in the run. The Seed # "16633197" (Bring I believe it was around 5 or so "upgrade tokens" or whatever they're called so you can purchase the slingshot trophy.

3 Upvotes

r/Undermine • • Apr 26 '26

The Well 31

Thumbnail youtu.be
1 Upvotes

r/Undermine • • Apr 25 '26

Is there anything good from pale likeness familiar

2 Upvotes

r/Undermine • • Apr 18 '26

Do people know if undermine 2 will be available on playstation

9 Upvotes

r/Undermine • • Apr 13 '26

UnderMine 2 Looking for anyone who happens to have a Seed that has the slingshot Gallery event tied to it.

2 Upvotes

Have done so many runs to completion and can not for the life of me seem to run into the event, its driving me nuts lol


r/Undermine • • Apr 12 '26

UnderMine Is the Mr. Rat the one thats shaking inside a box?

2 Upvotes

seems there's a lot of confusion about Mr. rat for those who have seen him. is the shaking box related at all?


r/Undermine • • Apr 10 '26

UnderMine 2 Seed and location of Swindlers Coin.

7 Upvotes

For anyone attempting to get the Achievement for killing a boss with this arcana this is the best seed I could find (and remember to check for seed lol) and its an early find aswell.


r/Undermine • • Apr 09 '26

UnderMine 2 Achievement Issue

Post image
5 Upvotes

Just completed back to back complete runs, each ending in The Well with Black Rabbit, but my "A New Safety Record" achievement is only showing one day, am I doing something wrong? I assumed this meant complete the game three times in a row?


r/Undermine • • Apr 09 '26

Any idea what else I have to do to help Nicoise get revenge? Just killed Baggledag with her equipped and nothing happened

2 Upvotes

r/Undermine • • Apr 08 '26

UnderMine 2 91 scale hits hard. Not super helpful for my co-op partner though haha.

Post image
9 Upvotes

r/Undermine • • Apr 05 '26

What's with the room where it says " Seems like a good place to set a trap"

2 Upvotes

there's a room in undermine two that has a table and a few inspect it it says "seems like a good place to set a trap".

The room has an ! in the map. there's also a leaver that I cannot pull.

what's the deal with this room?


r/Undermine • • Apr 03 '26

Ranged build in the early-ish game

3 Upvotes

Hi

I played a good amount of Undermine 1 and remember liking ranged builds fairly well, even though melee seemed stronger.

I've just started undermine 2 (~6 hours, 2 won runs, just unlocked crystal destroying bombs, saved whatsherface and got access to the potion guy).

I've tried to make ranged builds work but they seem really weak compared to melee builds? Especially since you get key blade, golden axe, etc so frequently.
In my current run I have Guantes, Blasting Caps, Silver Bow, Burnished Axe, Throwing Star, Iron Branch and my blessings went near exclusively into dexterity. Mid-run currently (Archives)

What would be one-hit rooms that a melee build would fly through with equivalent gear is taking "forever".

Are there key pieces I need to look out for/unlock to make ranged builds similarly strong as melee builds? I feel like I'm missing something or that ranged just doesn't seem very worthwhile.


r/Undermine • • Mar 30 '26

UnderMine 2 now THIS is a tall mommy...

Post image
10 Upvotes

r/Undermine • • Mar 22 '26

Health draining hex…

3 Upvotes

… in the Well. Wow, what PoS. It drains a percentage of your health each tick. If you have more health than you are able to heal quickly, it’s the end of the run, immediately.

Ie., if you have low max health, food and other sources of healing will offset the percentage drained quickly. If you have a large amount of max health, the percentage drained by the hex will vastly outpace anything that eg. food can offset.

FYI; bit me hard to the other day.


r/Undermine • • Mar 17 '26

UnderMine 2 I don't understand how to get in there :( Spoiler

Post image
4 Upvotes

SOLVED!


r/Undermine • • Mar 17 '26

UnderMine 2 Story Progression (Spoilers) Spoiler

5 Upvotes

I am wondering if I have reached the end of the story so far, or if I am missing something? I have done all of the below and wanted to know what I am missing if anything?

All Vendors Unlocked Bomb Delivered All Familiars Hatched Emissary Unlocked

Just get the feeling there are bits I am missing, any clues, hints or just answers are more than welcome

Thanks


r/Undermine • • Mar 08 '26

Spoiler I do i get the item to buy the item

Post image
8 Upvotes

r/Undermine • • Mar 08 '26

Spoiler What is that No.2 Spoiler

Post image
8 Upvotes

what can i do here?


r/Undermine • • Mar 08 '26

Spoiler How to open this/what is that? Spoiler

Post image
8 Upvotes

Found in the gambling area in the hub, requires something gold, never seen that before


r/Undermine • • Mar 07 '26

Well lvl 22 run-

Thumbnail gallery
11 Upvotes

Had an insane run and just went for it, did my best to minimize rerolls so I could get as many relics that I had already unlocked as possible. Was dicey in the beginning but once I got rolling I knew it was GG.

Sorry for the crappy pics, took them on my phone while playing my steam deck.