Back to Explore
đź’»Code Techniques

Randomness

Probabilistic elements—controlled chaos

Examples

Sometimes double the speed

s("bd hh sd hh").sometimes(fast(2))

Occasionally reverse the pattern

note("c3 e3 g3 b3").sound("piano").sometimesBy(0.3, rev)

Try It Yourself

Start with a blank canvas and experiment with randomness.

Community Patterns

Patterns from other learners that use randomness

Related Concepts