- If you want to generate a number in the range
yincluded, you can use the
~operator. This operator will adapt to context (integer or floating point number).
- It can be used as an alternative to
randfor scaled randomisation.
@swim def ranges(p=0.5, i=0): D('pluck|jvbass', speed='1~5', i=i) again(ranges, p=0.5, i=i+1)