21.06.2014, 23:20
pawn Код:
new Float:MaxSize = 100.0; //This will be the largest size a fish can reach.
new Float:MinSize = 4.0; //This will be the smallest size a fish can reach.
new Float:RandSize = MinSize + float(random(floatround(MaxSize - MinSize) * 1000)) / 1000;
//Gives a random number between 4.0 (MinSize) and 100.0 (MaxSize). Results vary depending on the value of 'MaxSize' and 'MinSize'.