Link to home
Start Free TrialLog in
Avatar of gulrast
gulrastFlag for United States of America

asked on

Random Numbers in VB

Hi, I have just started learning VB and am trying to make some dice for my friends game. How would I go about making some dice that would roll a 20 sided dice if i click on a button, and the outcome would appear on a label? I am going to make more dice like this, like a 6 sided 12 sided, etc.
Thanks in advance :)
Avatar of gulrast
gulrast
Flag of United States of America image

ASKER

Thanks, I just took out the +1 and added:
If Label1.Caption = 0 Then
Label1.Caption = 1
End If
that made it so that it doesn't always keep adding the 1 more number. Thanks again
ASKER CERTIFIED SOLUTION
Avatar of Moondancer
Moondancer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial