Random Numbers
#1

Hello there, i've been tring to set a random number between 17 and 19 but its not working, it always comes out as 18.

Heres what i use for rand:

pawn Код:
//random(max- min) + min;
new rand = random(19 - 17) + 17;
Any help will be appriciated
Reply


Messages In This Thread
Random Numbers - by ZBits - 17.01.2014, 00:41
Re: Random Numbers - by Ari - 17.01.2014, 01:03
Re: Random Numbers - by ZBits - 17.01.2014, 01:09
Re: Random Numbers - by Snir_sofer - 17.01.2014, 02:43

Forum Jump:


Users browsing this thread: 1 Guest(s)