The result

dharmatiles version="1.0.0"
tile size="1x1" seed=21 {
stack {
base
dirt top="$groundHeight + low(0dmm .. 3dmm)" bumpSize="12dmm"
}
}
Say it plainly
A plain range on a top lets the surface lie anywhere between two heights. A weighted range says how often: low(0dmm .. 3dmm) is mostly low with a few rises. The body draws one smooth surface and the weighting places it between the two.
Pins, arithmetic and the other elements all work on clouds, and a few things are refused because they could fold the low and high surfaces over each other.
The rules
A top may be a cloud: a top with odds
A top may be a cloud: a low surface, a high surface and one weighting that says how often each height between them comes up. Write a weighted range in the top: top="$groundHeight + low(0dmm .. 3dmm)" is dirt between the ground height and 3dmm over it, mostly low with a few rises. A plain range, [a .. b], is a cloud with every height equally likely, and builds exactly as it always did.
The body supplies a roll from 0 to 1 at each point and the weighting places it between low and high. How neighbouring rolls relate is the element's own business: dirt and water roll one smooth surface (hills, waves), flagstones, planks and cliff draw their slabs and stacks of stones from one smooth heaved surface, so neighbours are alike. A weighting other than flat reads the roll by its rank over the body's points, so even a smooth field's heights come up as often as the weighting says. Rolls are fixed by the tile's seed and are the same on any number of threads. A tree rolls one smooth field of rolls over its branch tips, ranked through the weighting, so neighbouring tips are alike and the crown stays under the cloud's high; a rock (and stone, boulder, pebble) rolls one smooth field of rolls over the tile's stones, ranked through the weighting, and stands its peak at the cloud worked out at its middle (rock top="$bottom + [4dmm .. 9dmm]"; see rock).
A pin replaces the cloud where it holds
Away from it the surface eases back into the cloud the way the body eases: dirt no steeper than its slope, water over 9 mm, cliffs and floors step. A pin's own top may be a cloud (pin top="$waterBedHeight + high(0dmm .. 0.3dmm)"), rolled with the body's roll; where pins overlap the later one wins. The library's rim pin is the edge height, so the top never leaves its cloud or its pins.
Arithmetic on a cloud keeps two surfaces and one weighting
+ - * / by a number, or a formula that is a number at the point, shifts or stretches both surfaces and keeps the weighting; min, max, clamp and smooth of one cloud and numbers act on the surfaces (min(high(0dmm .. 20dmm), 10dmm) is high(0dmm .. 10dmm): no shelf).
A negative factor swaps low and high
A negative factor swaps low and high at the points where it is negative, and the weighting turns round with them, so low is always the lower surface: 10dmm - high(0dmm .. 4dmm) is low(6dmm .. 10dmm), point by point.
Two ranges are two rolls
A sum or difference of two ranges, with odds or without (low(0dmm .. 2dmm) + [0dmm .. 2dmm], [0dmm .. 2dmm] + [0dmm .. 2dmm]), spans the interval of the sum and has the odds of two independent rolls: the second is a triangle over 0dmm .. 4dmm, most often near 2dmm. The body still rolls one number at each point, in those odds.
Some arithmetic a cloud does not have is refused
Refused, with dt::cloud: a cloud multiplied or divided by a range, dividing by a cloud or by a range, sin, cos or abs of a cloud (they can fold low and high over each other), a cloud at the end of a range. The help shows the rewrite.
A weighting’s extra numbers stay plain
A weighting's extra numbers stay plain: low(0dmm .. 3dmm, 11). A list is a cloud of the heights written ([0dmm:3, 2dmm, 4dmm:1]).
Errors this page explains
Next
Next: seeds, which fix every roll the language makes.