random_num
Like if I did
random_num(0,3000) how long would you think it would take so it picks the random num? |
Random_num, this is an example of how to use it.
Code:
|
Quote:
This is a trivial task for any CPU and should be completed in less then a millisecond. |
smokey do you just take other pieces of plugins and post them :roll: Anyways that had nothing to do with his post, and neither does this... sorry
|
Quote:
|
Not a smart way of doing it.
|
so if i did
Code:
how long would it take? |
Why do you need to know?
Less than a millisecond. These things go by very quickly. |
Actually, since the random number generator is the one put into C and C++ from either HL1's engine or from the STL or STD, its a simple mathamatical evaluation, meaning it takes as much as the function call to PAWN + a simple evaluation + the return value + a call to PAWN, which is significant, but no where near a whole milisecond; I'd put it at approximately 1000 - 10000 ( due to PAWN execution, not the actual generator) machine code instructions, which on a 1 gigahertz processor, is better approximated in billionths of a second, not millionths.
In simpler terms, it isn't expensive. |
so if i did
Code:
would it take atleast an hour or something? |
| All times are GMT -4. The time now is 04:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.