I'm wondering how to make a button generate a random number when pressed...
Thank you.
[code]
Dim A1 As Integer
Dim generator As New Random
A1 = generator.Next(10, 100) ' 10 is the min 100 is the max number to be generated
MsgBox(A1) [/code]
The MSDN has many help articles to help out in situations like this.
What VB are you talking about VB.NET or vb 6 As some still use VB 6 (like me!)
[QUOTE=benjojo;17041865]What VB are you talking about VB.NET or vb 6 As some still use VB 6 (like me!)[/QUOTE]
Isn't most (simple) code portable between versions?
Pseudorandom :D
Sorry, you need to Log In to post a reply to this thread.