Yet once composers such as Schoenberg, Webern, Berg and, later, Cage, Stockhausen and Boulez denounced traditional forms of rhythm and harmony, the search for what should replace them incorporated everything from coin-tossing to complex calculations with prime numbers.