Local Count%=4 Local Num#[Count],cI% For Local i%=0 to Count-1 Num[i]=Rnd() If Num[i]>Num[cI] cI=i Next DebugLog Num[cI]