Option Explicit: Option Base 1
Sub Tirage()
Dim DL%, P%, i%, j%, Buffer, T
Application.ScreenUpdating = False
DL = [A65500].End(xlUp).Row
ReDim T(DL, 2)
For i = 1 To UBound(T) ' Tableau indice 1 Nom, indice 2 Nbre alea
T(i, 1) = Cells(i, "A"): T(i, 2) = Rnd()
Next i
For i = 1 To UBound(T) ' Tri tableau sur Nb alea décroissant
For j = 1 To UBound(T)
If T(i, 2) > T(j, 2) Then
Buffer = T(i, 1): T(i, 1) = T(j, 1): T(j, 1) = Buffer
Buffer = T(i, 2): T(i, 2) = T(j, 2): T(j, 2) = Buffer
End If
[B] [/B][COLOR=rgb(85, 57, 130)][B]Next j
Next i[/B][/COLOR]
P = 1: [E2:J5].ClearContents ' P pointeur de rangement
For i = 5 To 10 ' Rangement des noms dans tableau de sortie.
For j = 2 To 5
Cells(j, i) = T(P, 1)
P = P + 1
If P = DL + 1 Then Exit Sub
Next j
Next i
End Sub