-
April 15th, 2004, 07:54 AM
#1
Senior Member
First time programming
Im new to programming and am coding this project in VB 6.
I know that this code generates numbers from 1-9 only. Rnd chooses a decimal number in between 0,1. Int multiples this number by ten and rounds it. I want it to generate numbers at random in between 1-52. I feel lame but thought I could get advice or help, I know lamers use VB but C++ looks wicked hard. If I could get a list of functions like the ones you see here I would appreciate it and what If statement would you use?
Label1.Caption = Int(Rnd * 10)
Label2.Caption = Int(Rnd * 10)
Label3.Caption = Int(Rnd * 10)
Label4.Caption = Int(Rnd * 10)
Label5.Caption = Int(Rnd * 10)
Label6.Caption = Int(Rnd * 10)
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|