sometimes
  1. function

Applies the given function with a 50% chance

s("hh*8").sometimes(x=>x.speed("0.5"))
parametertype
function
  • function
the transformation to apply
mentioned in (4)