PDA

View Full Version : Random Timer interval?


Supermaxultraswag
07/02/2015, 11:35 AM
SetTimerEx("Fish", THERE how to make random interval from 5000 to 8000??, false, "i", playerid);

HazardouS
07/02/2015, 11:40 AM
new randomTime = 5000 + random(3001);
SetTimerEx("Fish", randomTime, false, "i", playerid);


random(3001) will give you values ranging between 0 and 3000, so 5000 + random(3001) can equal any value between 5000 and 8000.