Help with Random() SOLVED

In case you want to try Random numbers:

function r2(i,tmo){ //must be float use dot in function call intv=0.02 -(math.rand()*i) / (RAND_MAX+1); //notice minus 0.02 minimum imp.wakeup(2-(math.rand()*tmo) / (RAND_MAX+1),function() { hardware.pin2.write(0); onoff=0; } ); onoff=1; } math.srand(time()); //seed r2(1.0,20.0);