View Single Post
Old 24/01/2011, 09:59 PM   #3
Davidovich
Little Clucker
 
Join Date: Jan 2011
Posts: 17
Reputation: 0
Default Re: random number between two numbers

Quote:
Originally Posted by Fj0rtizFredde View Post
Like this?
pawn Code:
stock randomEx(min, max)
{    
    //Credits to ******    
    new rand = random(max-min)+min;    
    return rand;
}
hm
looks nice, lol, thanks
I would use like this?
Code:
new A = randomEx(5,10);
And, it would generate 5 and 10 or only 6, 7, 8 and 9?
Davidovich is offline