Const nTirage = 1000000
Sub tirage()
Dim der&, n, t, t0, i&, j&, k&, m&, aux
der = Cells(Rows.Count, 2).End(xlUp).Row: t = Range("a2:c" & der)
For i = 1 To UBound(t): n = n + 10 * t(i, 2): t(i, 3) = 0: Next
ReDim t0(1 To n)
For i = 1 To UBound(t): For k = 1 To 10 * t(i, 2): m = m + 1: t0(m) = i: Next k, i
Randomize
For i = 1 To n: For j = 1 To 5: k = 1 + Int(Rnd * n): aux = t0(i): t0(i) = t0(k): t0(k) = aux: Next j, i
For i = 1 To nTirage: k = 1 + Int(Rnd * n): t(t0(k), 3) = t(t0(k), 3) + 1: Next i
Range("a2").Resize(UBound(t), 3).Value = t
Range("c" & der + 1 & ":c" & Rows.Count).Clear
End Sub