Local blah:Int[] = [41,5125,4323,123,25,216,7547,8,101] Notify NewMin(blah) Notify NewMax(blah) Function NewMin:Int(Nums:Int[]) Local SelNum:Int=2147483647 For Local i:Int = EachIn Nums If I < SelNum Then SelNum = I Next Return SelNum End Function Function NewMax:Int(Nums:Int[]) Local SelNum:Int=-2147483646 For Local i:Int = EachIn Nums If I > SelNum Then SelNum = I Next Return SelNum End Function
@Dabhand
Yeah I didn't realise max had it either. I had to edit my post to remove what I previously said =P