function Math.NotRepeatRandom(num1,num2) local tblNumbers = {} local low=num1 local upp=num2 local num; local exists for c=low, upp do repeat num=Math.Random(low, upp) exists=false for index,item in pairs (tblNumbers) do if item==num then exists=true end end until not exists tblNumbers[c]=num end return tblNumbers end