wchoose
  1. pairs

Chooses randomly from the given list of elements by giving a probability to each element

note("c2 g2!2 d2 f1").s(wchoose(["sine",10], ["triangle",1], ["bd:6",1]))
parametertype
pairs
  • ...any
arrays of value and weight
returns