View Full Version : 5+Random(5)
I Karma I
12-20-2006, 12:53 AM
Is that 5 minutes, plus a random time between 1 and 5? or is it 5, plus a random 5, that could equal 10?
amned92
12-20-2006, 12:57 AM
That is a 5 + a random number from 0 to 5. The totally is a possibility of 5-10.
I Karma I
12-20-2006, 12:58 AM
Ok, cool, thanks.
IronTeapot
12-20-2006, 01:03 AM
its not minutes, is miliseconds, 1000milliseconds = 1 second
I Karma I
12-20-2006, 01:05 AM
No its not, I have a script that does rotate every 5+Random(5), and it doesn't rotate every 5-10 seconds...
Cheesehunk
12-20-2006, 01:15 AM
No its not, I have a script that does rotate every 5+Random(5), and it doesn't rotate every 5-10 seconds...
Thats a procedure that converts the minutes to Milleseconds...
If you do something like Wait(100 + Random(50)); it would wait 100-149 Milleseconds.
I Karma I
12-20-2006, 01:27 AM
Ohh ok
Pentti
12-20-2006, 01:25 PM
That is a 5 + a random number from 0 to 5. The totally is a possibility of 5-10.
Thats almost right. :D But random(5) is from 0 to 4. random 5 numbers are: 0,1,2,3,4.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.