More efficient way of doing this?
#2

That should work, but it can be done a lot easier:

new pricechange = random(20)
privates = privates + random - 10.

This will generate a random number between -10 and +10
And add (or substract if it's a negative number) it to privates
Reply


Messages In This Thread
More efficient way of doing this? - by Hoborific - 16.01.2012, 04:29
Re: More efficient way of doing this? - by ғαιιοцт - 16.01.2012, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)