Function randomListNumber3(mini, maxi, nb) As String()
Dim i As Long, result() As String
ReDim result(1 To nb)
Randomize
For i = 1 To nb
result(i) = CStr(Int((maxi - mini + 1) * Rnd) + mini)
Next
randomListNumber3 = result
End Function
Sub test()
MsgBox Join(randomListNumber3(-3, 20, 10), vbCrLf)
End Sub