i need a code that makes random combonations of letters and numbers. in a text box or whatever
Printable View
i need a code that makes random combonations of letters and numbers. in a text box or whatever
:D just follow me and you will do it:)
Dim thenum as Integer
Private Sub Form_Load()
Dim thenom as Integer
Randomize
thenom = "100" 'Generate from 1 to 100
thenum = Int((Rnd*thenum) +(1))
msgbox thenum
End Sub
:D just follow me and you will do it:)
Dim thenum as Integer
Private Sub Form_Load()
Dim thenom as Integer
Randomize
thenom = "100" 'Generate from 1 to 100
thenum = Int((Rnd*thenum) +(1))
msgbox thenum
End Sub
Oh, and did I mention that I'm only 12?
must hav letters in it too
It's so easy;)
Dim thenum as Integer
Dim theletter as string
Private Sub Form_Load()
Dim thenom as Integer
Randomize
thenom = "100" 'Generate from 1 to 100
thenum = Int((Rnd*thenum) +(1))
Call ce
End Sub
Sub ce()
if thenum = "1" then
theletter = "O"
elseif thenum = "2" then
theletter = "p"
else
theletter=""
end if
End Sub
Just do it like that and so on...
I'm only 12, man, how old are you bro?