Random float.
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
e.g. like this: no clue if there is a better solution
pawn Код:
new n1 = random(10000); //or whatever should be the max value infront of the .
new n2 = random(10000); //number behind the .
new string[50];
format(string, sizeof(string), "%d.%d", n1, n2);
new Float:randomfloat = floatstr(string);
How to make Between 0.50 and 2.15 for example with this?

++
Reply


Messages In This Thread
Random float. - by Baltimore - 08.02.2015, 15:17
Re: Random float. - by Sascha - 08.02.2015, 15:19
Re : Re: Random float. - by Baltimore - 08.02.2015, 15:24
Re: Random float. - by HazardouS - 08.02.2015, 15:26
Re: Random float. - by Sascha - 08.02.2015, 15:29
Re: Random float. - by vinigas - 08.02.2015, 15:30

Forum Jump:


Users browsing this thread: 2 Guest(s)