Fill with random numbers between 0-12

Posts 1–14 of 14 · Page 1 of 1
Fill with random numbers between 0-12
I am trying to make the program insert a random number between 0 and 12.

WebBrowser1.Document.GetElementById("mm").SetAttri bute("value", "1")

Right now i have the value as one. What would be the code to set the program to choose a random value between 0 to 12.
Code:
Dim rndnumber As Random
        Dim number As Integer
        rndnumber = New Random
        number = rndnumber.Next(0, 12)

WebBrowser1.Document.GetElementById("mm").SetAttri bute("value",number.tostring)


There you go, have fun with it!
Correct code:

Code:
Dim kazuishot As Random
        Dim number As Integer
        kazuishot = New Random
        number = kazuishot.Next(0, 12)

WebBrowser1.Document.GetElementById("mm").SetAttri bute("value",number.tostring)

Oh, and

http://www.iCloudstrife.*********.com/ⓘ
/epic win.
I'm sure you love me. I also changed the rand integer to 0-12. xD
ok how do you do it with letters and numbers
like 4 numbers and letters long
Fucking Ng. you beat me to it, I was just copy pasting code down. >....<
Ha Ha, Beat you in a C&P
ughh fml. Help me with mah ********* fool.
Ill get on MSN later and help
Okay. But you're never on MSN...
I have been alot lately (working on another big project, so I have to collaborate with the other guy)
Okay. I'll be on for as long as I can be.
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?