Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Random Numbers in VB

Posted on 1999-01-29
2
Medium Priority
?
146 Views
Last Modified: 2010-05-03
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 :)
0
Comment
Question by:gulrast
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:gulrast
ID: 1471251
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
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7012317
60 points refunded, question closed today; reappeared mysteriously and clearly missing comments.
Moondancer - EE Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question