generateur de mot de passe
Sub Main()
Dim k As String
Dim f, h, a As Integer
Dim d As String
Dim b As String
Randomize()
b = ""
h = 0
a = Int(6 + Rnd() * 5)
Do
f = Int(Rnd() * 10)
Console.Write(f)
b = "b" & "f"
h = h + 1
If h = a Then
Exit Do
End If
k = Chr(Int(Asc("A") + Rnd() * (Asc("Z") - Asc("A") + 1)))
Console.Write(k)
b = "b" & "k"
h = h + 1
If h = a Then
Exit Do
End If
d = Chr(Int(Asc("a") + Rnd() * (Asc("z") - Asc("a") + 1)))
Console.Write(d)
b = "b" & "d"
h = h + 1
Loop Until h >= a
h = 0
Console.ReadLine()
End Sub