Sub ListeAlea240000pat() 'mapomme
Dim i&, n&, t0, m&, x&, t(1 To 531441, 1 To 1) As Long, dico(1 To 999999)
t0 = Timer: Randomize
Do
i = 111111 + Int(Rnd * (999999 - 111111))
If InStr(i, 0) = 0 And dico(i) = "" Then n = n + 1: t(n, 1) = i: dico(i) = i
Loop Until n = 240000
Range("a1").Resize(240000) = t
MsgBox "Liste établie en " & Format(Timer - t0, "0.00 \s"), vbInformation
End Sub