HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Min, Max, I dunno, Plz Help.

04-23-2004, 03:05 PM#1
Kelna2
How do you use min and max?
I want to use it here if i can:

Pick every unit in <playable area> matching unit is not equal to P1E(min 1, max 5) and do remove picked unit from the game.

P1E is an array variable

I am pretty sure that min 1 and max 5 will do every number in between them. If this is not how min and max is used then well please give me an example of it.

Thanks!
04-23-2004, 03:12 PM#2
Vexorian
To get random numbers use Math- Get Random number

and min and max work like this:

Min(3,2) == 2
Max(3,2) == 3
04-23-2004, 03:19 PM#3
Wyll
Just do a loop from 1 to 5...
04-23-2004, 11:14 PM#4
Kelna2
Quote:
Originally Posted by Lord Vexorian
To get random numbers use Math- Get Random number

and min and max work like this:

Min(3,2) == 2
Max(3,2) == 3

now does this include the 2 end numbers or not? like is 2 and 3 counted in the min and max or not?
04-24-2004, 11:28 PM#5
Vexorian
they are counted
04-25-2004, 06:05 PM#6
Kelna2
Ok, Thank you!