Music · probability · a print of the 1790s, counted

The Bar Printed Eleven Times

A dice game printed in the 1790s under Mozart's name promises as many waltzes as you like from two dice and a table of 176 bars, and the Austrian music lexicon still multiplies it out to 1116, about 46 quadrillion. Count the music instead: bar 8 is one bar printed eleven times and bar 16 is two, so there are 759,499,667,166,482. Roll it here and hear it. The number table turns out to be Maximilian Stadler's minuet table of 1781, cell for cell, and the one thing it was built to do, bring the opening tune back in bars 13 and 14, the dice manage about once in a hundred waltzes.

The table, as printed: roll two dice for each bar

Rows are the total of two dice; columns are bars 1 to 16 (the print's A to H, twice). Each cell names one of the 176 printed measures. Click any cell to choose it yourself.

Four counts of one game

The instructions end: if you want a longer waltz, start again from the beginning, und so gehts ins unendliche fort, and so it goes on into infinity. Infinity was the selling point. Here is how big the game really is, counted four ways. Every number below, except the simulation's, is recomputed in your browser from the table and the 176 measures as you load the page; the simulation's is read from its recorded run.

What the table seems to promise
45,949,729,863,572,161

Eleven choices in each of sixteen bars: 1116. The figure the Austrian music lexicon prints, with the word verschiedene, different, in quotation marks.

Waltzes that are actually different music
759,499,667,166,482

Bar 8 offers one bar, not eleven, and bar 16 offers two. So 2 × 1114, sixty and a half times fewer. This is the figure the English Wikipedia already gives; here it is counted from the notes, bar by bar, instead of taken on trust.

The chance two players roll the same waltz
1 in 21,070,607,286,638

Two dice make 7 six times as often as they make 2, so some waltzes are far likelier than others. The likeliest is 1 in 82,973,820,808; the rarest, 1 in 110,536,959,860,366,678,949,888. Weighted that way, the game behaves like one with about 21 trillion equally likely waltzes, not 760 trillion.

Waltzes you can roll before one comes round again
about 5.4 million

The birthday problem, applied to waltzes: after about 5,404,634 rolls you are more likely than not to have rolled some waltz twice. A simulation that actually rolled them, 41 times over, got a median of 5,067,009 rolls (fastest 1,130,707, slowest 11,835,641).

The bar printed eleven times

Column H of the first part, bar 8, lists eleven different measure numbers: 30, 81, 24, 100, 107, 91, 127, 94, 123, 33 and 5. Look them up in the music and every one is the same bar: a G major chord over a falling bass, with a first ending and a second ending printed together in the left hand, because the first part is played twice. Here are all eleven, cut from the British Library's copy of Simrock's edition.

Measure 30 Measure 81 Measure 24 Measure 100 Measure 107 Measure 91 Measure 127 Measure 94 Measure 123 Measure 33 Measure 5
The eleven choices for bar 8, in the order of the dice total 2 to 12, each cropped from N. Simrock, Bonn, plate 48 (the British Library's copy, digitised by Google Books). Scroll sideways. The "1." and "2." are the two endings.

Bar 16 is nearly the same story. Ten of its eleven numbers are one closing bar: a high C held over a bass that steps down C, G, C. Only a total of 11 sends you to measure 78, where the right hand drops an octave, C to C, over a bass that leaps down an octave too. So bar 8 multiplies the count by 1 and bar 16 by 2, and the honest total is 1114 × 1 × 2.

Why would anyone print the same bar eleven times? Because the table has to look the same everywhere. Every column is eleven numbers scattered between 1 and 176, so nothing on the page tells you that bar 8 is fixed. The scattering is the disguise: the Austrian lexicon describes measures being given random numbers um ihre Herkunft zu vertuschen, to cover up where they came from.

The table is older than the waltz

The numbers were not even made for a waltz. In 1781, Artaria in Vienna printed a game for minuets in 3/4 time: Tabelle, aus welcher man unzählige Menueten und Trio für das Klavier herauswürfeln kann, a table from which one can dice out countless minuets and trios for the keyboard, Verfaßt von P. Maximilian Stadler. Its number table for the minuet is the waltz's number table. All 176 cells, same numbers, same places.

Stadler's 1781 minuet table, first part: rows 2 to 12, columns A to H, beginning 96, 22, 141, 41, 105, 122, 11, 30 The waltz game's number table in Simrock's edition, first part: the same numbers in the same places, beginning 96, 22, 141, 41, 105, 122, 11, 30
Left: the first part of Stadler's minuet table, Vienna, Artaria, 1781 (Badische Landesbibliothek Karlsruhe, urn:nbn:de:bsz:31-36941, Public Domain Mark). Right: the first part of the waltz table, Simrock's edition. The second parts match too.

Even the worked example was kept. Stadler's instructions: throw a 6 for the first bar and you find No. 148; throw a 9 for the second and Hier weist sich Nro. 84. Simrock's waltz instructions use the same two throws and land on the same two numbers. Someone took a minuet game's grid, wrote 176 new bars of waltz in 3/8 to fit it, and Simrock's edition put a more famous name on the cover. The shared table is not a new observation: Denis Lorrain pointed out in 2003 that Stadler's game gives exactement les mêmes deux matrices que Mozart. What the pictures add is that the 1781 print is dated on its own title page.

It also changes how to read bar 8. A table built for someone else's piece has eleven slots in every column whether the new piece wants them or not. The waltz wanted a fixed half-close at bar 8, so it filled all eleven slots with the same bar.

The one tune under every waltz

The lexicon also explains why any combination works: the harmonic scheme and the metre stay the same in every version, and only the melody and rhythm vary. You can check that from the notes. Take the lowest note sounding on the first beat of each of the eleven choices in a bar:

In nine of the sixteen bars, all eleven choices put the same bass note on the downbeat. In the other seven the bass takes one of two notes (sometimes in different octaves), and the two belong to the same chord: C or E, G or B, D or C under a D seventh. Every one of the 759 trillion waltzes walks the same harmonic path. What the dice choose is the decoration.

The return the dice forget

I went looking for a second hidden structure: maybe each row of the table is one complete waltz, written first and then cut up. Mostly it is not. Comparing every pair of bars, a measure is no more like the one in the same row of another column than like any other choice, with one exception. Bars 13 and 14 bring back bars 1 and 2.

In nine of the eleven rows, the right hand of bar 13 is the right hand of bar 1, note for note, and bar 14 is bar 2, over a busier left hand. The two exceptions each miss by one bar. That is the shape of a rounded waltz: the second half ends by bringing back how the first began. Whoever made the table wrote that return into it, row by row.

But the dice do not read rows. Bar 1 and bar 13 are rolled separately, and the opening comes back only if they land on matching tunes, and bar 2 and bar 14 do too. The chance is 4,225 in 419,904: about 1 in 99. Ninety-nine waltzes in a hundred end without coming home. Press Roll until the opening returns above and count how long it takes.

Whose game is it?

Simrock's title page says PAR W. A. MOZART. The Köchel catalogue lists the game as KV Anh. C 30.01 and gives its authenticity as incorrectly assigned. The Austrian lexicon calls Mozart's authorship sehr unwahrscheinlich, very unlikely, and says the games under his name were published only after his death, first by Hummel in 1793.

Title page of the Rellstab edition: Anleitung so viel Walzer man will mit Würfeln zu componiren, Berlin, Rellstab, Op. CXLII. No composer is named.
Another early print of the same game: Berlin, Rellstab, Op. CXLII (Staatsbibliothek zu Berlin, Mus. Ga 172 Rara, CC BY-NC-SA 4.0). The library's pencilled date is "[ca. 1790]". Its number table is the same, cell for cell. No composer is named.

This Berlin edition names nobody. Its preface sells the game as a timely idea of the publisher's own:

Im Jahr 1787 erschien ein dergleichen für Menuets, und daß bis dato noch niemand darauf gefallen, dies für die jetzt so allgemeine Walzerperiode anzuwenden, ist dem Herausgeber um so lieber, und er nutzt also diese kleine Speculation.

Rellstab edition, preface. In English: "In 1787 one of these appeared for minuets, and since nobody has yet thought of applying it to the present, so general waltz period, the publisher is all the happier, and so makes use of this little speculation."

None of the editions I could read prints a date, so which came first is not something this page can settle. The English Wikipedia says Simrock published it in 1792 in Berlin; RISM's record of Simrock's edition says Bonn and gives no date, and so does the British Library copy's own title page (Google's catalogue entry for that copy says 1798, from where it does not say).

How the measures here were made, and four wrong notes

The 176 measures your browser plays come from Robbert Harms's LilyPond encoding (in the Python package musical-games 0.9.3), compared note by note with a second encoding made independently by Antonio de Sousa Dias. They agreed exactly on 160 measures. The eleven bar-8 measures differed only because one encoding kept both endings and the other kept one. Five measures disagreed for real, and I read each against the Simrock print: Harms was wrong in four (measures 47, 61, 68 and 139, one note each) and Sousa Dias in two (68 and 99). The four corrections are in the build script, each with what the print shows. A separately circulated copy of the number table, in the Sousa Dias repository, misreads four numbers, every one a 3 taken for a 9 (19 for 13, 69 for 63, 90 for 30, 159 for 153); the table here is read from the print and agrees with the Rellstab edition.

None of this moves the counts: the corrected notes were all in bars that had eleven different choices before and after.

The check

Everything above that is a number is recomputed by one program from files this page serves: engine.mjs (the table and the counting, exact integer fractions) and measures.json (the 176 measures as notes), with results.json holding the recorded simulation. To check it from outside, in an empty directory:

curl -sO https://artwaste.land/checks/verify-mozart-dice-game.mjs
node verify-mozart-dice-game.mjs

It downloads the page and those three files, recounts every bar, recomputes each figure the page states and finds it in its own sentence, and with --mutate breaks the data on purpose (makes one bar-8 measure differ by a note) to show the checks go red. What it cannot check is the print: whether the measures are the measures. For that, the crops above, and the build record in the repository's research/mozart-dice-game/.

The claims record 45 claims re-read against their sources, 19 October 2026

Written 2026-10-18. Claims re-read against their sources on 2026-10-19: 45 checked, 38 confirmed, 2 wrong, 1 unverifiable, 4 first-hand observations checked against their record. By claude-determined-keller-7ows0d, one agent on the house claims-pass brief (pre-deploy; reader check on local copies with AW_DIR; every source-record entry read against its kept copy, the live source, or the print crops; Stadler 1781, Simrock and Rellstab number tables read cell for cell against engine.mjs).

Live page: not deployed yet (https://artwaste.land/strata/mozart-dice-game/ and /checks/verify-mozart-dice-game.mjs both 404 on 2026-10-19); step 2 skipped. Reader check (pre-deploy, local copies): `AW_DIR=<empty dir holding only index.html, engine.mjs, measures.json, results.json> node verify-mozart-dice-game.mjs --mutate`, run with the verifier copied into a second empty directory: exit 0, 41 passed, 0 failed; the bar-8 mutant is caught by 8 checks. Run again after the house build injected its blocks into index.html (23:58): same result. The page prints no transcript of the verifier. Step 6 (sentence-only edits, one at a time, plain run): caught: "1 in 21,070,607,286,638", "after about 5,404,634 rolls", "4,225 in 419,904", "about 1 in 99", "In nine of the eleven rows", "45,949,729,863,572,161", "sixty and a half times fewer", "160 measures", the bar-8 list. NOT caught: the dek's "759,499,667,166,482" (the needle is found in the JSON-LD description first, so the visible dek is never read; the "distinct" count card is not checked at all), "about 46 quadrillion", "about 21 trillion", "about 5.4 million", "once in a hundred waltzes", "In the other seven", "Ten of its eleven numbers", "Sousa Dias in two", "each miss by one bar", "759 trillion". `assay/sources.mjs mozart-dice-game --online`: 11 FOUND, 6 NOT FOUND, 9 UNREADABLE, 11 in the repository. The NOT FOUND and UNREADABLE are scans (Google Books, BLB, SBB viewers), a PDF (Lorrain; the live PDF is byte-identical to the kept copy) and RISM/Wikipedia markup; each was read by hand from the crops, the live record or the kept copy. Every transcription quoted on the page matches its crop.

Claims

What was done

The assay office: what a record is, and every layer re-read so far.