Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.