f = {arg value, fromMin, fromMax, toMin, toMax;((value - fromMin) * (toMax - toMin) / (fromMax - fromMin)) + toMin;};
Routine({
loop {
var rand = rrand(0.0, 1.0);
var sustain = f.value(rand, 0, 1, 0.008, 0.07) * 1.1;
var freq = f.value(sqrt(rand), 0, 1, 391.995*16, 311.127*1.6);
var accelerate = f.value(rand, 0, 1, 2, 5);
var pan = f.value(rrand(0.0, 1.0), 0, 1, -1, 1);
var amp = f.value(rand*rand, 0, 1, 0.06, 1);
amp = amp * f.value(rrand(0.0, 1.0)*rrand(0.0, 1.0), 0, 1, 0, 1);
// Synth("simpleSineWave", ["amp", amp*0.1, "freq", freq, "sustain", sustain, "pan", pan, "accelerate", accelerate, "lpf", 5000]);
0.415.yield;
}
}).play;