Random
#4

pawn Код:
randmoney = random(50000 - 1000) + 1000;
// randmoney is a variable. It can store a value.
//random is a function that generate a random number between 0 and it params, for example:

//random(1000) will return a number between 0 and 999.

//+ 1000 always will add 1000 to the random value;
//For example, random return 515. 515 + 1000 = 515, so randmoney = 515.
Reply


Messages In This Thread
Random - by Ananisiki - 27.03.2014, 23:43
Re: Random - by Jefff - 27.03.2014, 23:59
Re: Random - by SkilledMaster - 28.03.2014, 13:43
Re: Random - by arakuta - 28.03.2014, 14:27
Re: Random - by newbie scripter - 28.03.2014, 14:52
Re: Random - by Ananisiki - 29.03.2014, 00:52
Re: Random - by Vince - 29.03.2014, 00:57
Re: Random - by Ananisiki - 29.03.2014, 01:11
Re: Random - by Konstantinos - 29.03.2014, 12:08

Forum Jump:


Users browsing this thread: 4 Guest(s)