![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] Why can't I generate 2 different random numbers with a Visual Basic.NET prog I have this code: Dim rndNum1 As New Random Dim rndNum2 As New Random Dim intNum1 As Integer Dim intNum2 As Integer intNum1 = rndNum1.Next(1, 11) intNum2 = rndNum2.Next(1, 11) but every time I use it I get the same number from both, is there anyway to do that and get 2 different numbers? (Besides using 2 buttons) |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |