Sub CreateRndNums()
Dim Rng As Range, loB As Long, upB As Long
Dim arr()
Application.ScreenUpdating = False
loB = [A1]
upB = [A2]
Randomize
ActiveSheet.Range("A6").Resize(65000, 2).ClearContents
Set Rng = ActiveSheet.Range("A6").Resize(upB - loB + 1, 2)
With Rng
.Columns(1).Formula = "=round(1 + rand()*65000,0)"
.Columns(1) = .Columns(1).Value
.Columns(2) = Evaluate("row(" & loB & ":" & upB & ")")
.Sort key1:=Rng(1, 1), Header:=xlNo
.Columns(1).Delete shift:=xlShiftToLeft
End With
Application.ScreenUpdating = True
End Sub