Solved

Random Numbers in VB

Posted on 1999-01-29
2
138 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
2 Comments
 

Author Comment

by:gulrast
Comment Utility
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
Comment Utility
60 points refunded, question closed today; reappeared mysteriously and clearly missing comments.
Moondancer - EE Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now