Would this be proper?
#1

Hey I want to set a timer for a random time between 5 min and 1 hour and wondering if this would the be proper way of doing it?

Код:
	new mrand = 300000 + random(3600000);
	SetTimer("SpawnFire",mrand,true);
Reply
#2

looks kosher to me
Reply
#3

yes it's right.
Reply
#4

Change the 3600000 to 3300000. A potential 60 minutes + 5 minutes is more than 'between 5 min and 1 hour'.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)