random between two float numbers Tag mismatch
#5

It's a function. Also float(int / int) in pawn will return closest integer, not a float as you'd expect, so change at least one number to float.

pawn Код:
new Float:rand = random(floatround(max-min)) / 10000.0 + min;
Reply


Messages In This Thread
random between two float numbers Tag mismatch - by DiamantEspace18 - 10.01.2015, 11:35
Re: random between two float numbers Tag mismatch - by Misiur - 10.01.2015, 11:40
Re : random between two float numbers Tag mismatch - by DiamantEspace18 - 10.01.2015, 11:45
Re: random between two float numbers Tag mismatch - by Gammix - 10.01.2015, 11:47
Re: random between two float numbers Tag mismatch - by Misiur - 10.01.2015, 11:48
Re : random between two float numbers Tag mismatch - by DiamantEspace18 - 10.01.2015, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)