I need to shuffle values in array with no duplications, what do i need to add in my code to avoid duplications
Function Resample(data_vector)
n = UBound(data_vector)
ReDim shuffled_vector(n)
For i = 1 To n
shuffled_vector(i) = data_vector(WorksheetFunction.RandBetween(1, n))
Next i
End Function