VB.NET Number generator - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

VB.NET Number generator

souljahsouljah Posts: 1Member
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

Comments

  • RelmanRelman Posts: 104Member
    Here is something to get you started:
    The code to generate a random number is:

    [Code]
    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()
    [/Code]

    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
    :

Sign In or Register to comment.