Random Terrain Generator screenshot

Random Terrain Generator

Draw a smooth heightmap by interpolating a seeded 4×3 lattice of values into ten height digits.

Privacy First
0 Runs
Updated 2026-11-06
No upload

Value noise on a small lattice

The page fills a 4×3 lattice with seeded values, interpolates between them with a smoothstep weight (3t²−2t³) and buckets each cell into a digit from 0 to 9. Because the lattice is small, adjacent cells change gently: this is a contour, not a simulation of erosion.

Width and height must be whole numbers from 4 to 40 and the seed must be a whole number from 0 to 4294967295. The map does not wrap at the edges, so the left and right columns are not neighbours; it also has no water level, no biome rules, no rivers and no guarantee that a low route connects two high areas.

The lattice is 15 draws from one 32-bit mulberry32 stream, so the same size and seed always print the same heightmap. The digits are cell values, printed with no separators so a row stays aligned. Nothing is uploaded.

Builds a smooth heightmap by interpolating a seeded 4×3 lattice of values into ten height digits per cell.

It is value noise for a contour, not terrain simulation: no water level, no biomes, no rivers and no wrap at the edges.

How to use it

Set the width and height in cells (4 to 40), add a seed and press Run. Each row prints as digits from 0 for the lowest height to 9 for the highest.

The smoothstep weight is what removes the lattice's straight creases: without it, the bilinear blend would show a visible grid at every lattice coordinate.

What to Expect

Best for

  • a terrain sketch
  • a heightmap for a prototype
  • a contour to trace

What this tool keeps

  • a smooth gradient, not static
  • the digits a renderer can read
  • the seed for the same map

Frequently asked questions

How do I use the random terrain generator?

Enter a width and height in cells, an integer seed, then press Run. Each row prints as digits from 0 (low) to 9 (high).

Is anything uploaded or stored when I press Run?

No. The draw happens in this tab with JavaScript: no request leaves the page, nothing is stored and a reload clears the form.

What are the limits and bounds?

Width and height must be whole numbers from 4 to 40 — the lattice needs four columns and the interpolation divides by height minus one — and the seed must be a whole number from 0 to 4294967295.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.