I'm using a very old version of VBA that can't return arrays.
I copied most of this from another post and modified it.
x = Array(679, 680, 683, 781, 790, 792, 800, 801, 809, 818, 822, 871, 897, 911, 913, 924, 927, 929, 930, 934, 936, 946, 951, 952, 956, 970, 971)
Dim i As Long
For i = UBound(x) To LBound(x) Step -1
Dim t As Variant
t = x(i)
Dim j As Long
j = CLng((25 - 0 + 1) * Rnd + 0)
x(i) = x(j)
x(j) = t
Next i
When I loop through the outcome and the old array it never overlaps numbers.
The J = CLng((Max - min + 1) * Rnd + Min) but I just moved it the way I had it.
Why does the randomness never overlap to create duplication? I looped the outcomes over 100k times.