VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
VB.NET Number generator Posted by souljah on 9 May 2004 at 11:22 AM
Hi All

Is there anyone out there who knows on how to make a lottery program in VB.Net I dont know how please advise

Thanks
Report
Re: VB.NET Number generator Posted by Relman on 15 May 2004 at 11:06 AM
Here is something to get you started:
The code to generate a random number is:

Dim RndGenerater as Random
Dim RndNum as integer
'This generates a number from 1 to 10
RndNum = RndGenerater.Next(1,10)
'This generates a number from 0 to 10
RndNum = RndGenerater.Next(10)
'This generates a random number (No bounds)
RndNum = RndGenerater.Next()


If you ask a more specifice question, I can help you with a more specific answer. All you told me is that you want to make a lottery program, so I told you how to do one of the necessary elements in a lottery program : Random Numbers

Relman

: Hi All
:
: Is there anyone out there who knows on how to make a lottery program in VB.Net I dont know how please advise
:
: Thanks
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.