Some riffs and motifs I’ve written are results of controlled randomization. Sometimes I’ve stumbled upon unpredictable yet musical outcomes, that I’ve set up for, but not composed in a more traditional sense. My work then has been more like being an active listener who identify and pick parts to use in a musically structured context.
Set probability conditions when programming sequencers. And combine with randomness, in this way probability introduces increasing amounts of unpredictability to the sequence. The probability parameter determines the chance of being true. For example, how often the randomness will occur.
Some sequencers allow for different aspects of the sequenced notes to be affected, such as playback order, steps on/off, velocity, gate time. Others set probability of the event, pitch, octave, length, rate, note direction and so on.
Anyways, you should really try this, it could also be a way of overcoming writer’s block.