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 :)
gulrastAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MoondancerConnect With a Mentor Commented:
60 points refunded, question closed today; reappeared mysteriously and clearly missing comments.
Moondancer - EE Moderator
0
 
gulrastAuthor Commented:
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
0
All Courses

From novice to tech pro — start learning today.