Sub TiragePourcent()
Dim n&, tablo, i&, k$, aux, max&
n = [=COUNTIF(A:A,">"" """)]
tablo = Range("a1:a" & n).Value
Randomize
For i = 1 To n
k = 1 + Int(Rnd * n)
aux = tablo(i, 1): tablo(i, 1) = tablo(k, 1): tablo(k, 1) = aux
Next i
max = Round(n * Range("h6") / 100, 0)
If max > n Then max = n
Range(Cells(11, "e"), Cells(Rows.Count, "e")).ClearContents
If max > 0 Then
Cells(11, "e").Resize(max) = tablo
' le tri est optionnel
Range("e11").Resize(max).Sort key1:=[e1], order1:=xlAscending, Header:=xlNo
End If
End Sub