Randomly changing parameters

Inside a SynthDef, is there a way to randomly reset something? I have the following:

SynthDef("waveset", { arg lvol = 0, hvol = 0.5, lfreq = 0.1, hfreq = 0.3, out = 0;
	Out.ar(out, {
		~freq = Rand(lfreq, hfreq);
		~modwave = SinOsc.kr(~freq).range(lvol, hvol);
		WhiteNoise.ar(~modwave);
	});
}).add;

Can I change ~freq inside the SynthDef to another random value?

Hi @steelwing,

try this:

:smiley: Thank you for your help, that was exactly what I needed.