Hi!to see if I you help me, the question is:
I have this to generate random words:
But i want those words can not be repeated ... and that's it, so simple ...
(Do not be scared it was dirty)
Thanks!!Code:Private Sub Aleatory_Comb(ByRef CharList() As String, ByVal iDigits As Integer, ByVal iNumber As Long) Dim sWord As String Dim x As Long Dim y As Long For y = 1 To iNumber For x = 1 To iDigits Randomize sWord = sWord + CharList((Rnd * (UBound(CharList()) - 1) + 1)) Next MsgBox sWord: sWord = "" Next End Sub Private Sub Form_Load() Dim Matriz() As String Matriz = Split("a,b,c,d,e,f,g,h,i,j,k,l,,m,ñ,o,p,q,r,s,t,u,v,w,x,y,z", ",") Call Aleatory_Comb(Matriz, 5, 7) End Sub![]()




to see if I you help me, the question is:
)
Reply With Quote