Lottery genarator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dazza2122
    New Member
    • Dec 2006
    • 2

    #1

    Lottery genarator

    I want to design a program to genarate lottery number the number have to be unique and be 0 to 49.

    Can anybody shed some sort of light on the code it would take
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by dazza2122
    I want to design a program to genarate lottery number the number have to be unique and be 0 to 49.
    Can anybody shed some sort of light on the code it would take
    Just loop around using the Rnd function to generate random numbers, and store them in an array so you can check which ones have already been used.

    You may need to Randomize at the start, to avoid generating the same sequence of numbers each time.

    Comment

    • dazza2122
      New Member
      • Dec 2006
      • 2

      #3
      Thanks for the tip

      I am new to programming sao will do some research Thanks

      Dazza

      Comment

      • aaryan
        New Member
        • Nov 2006
        • 82

        #4
        Originally posted by dazza2122
        I want to design a program to genarate lottery number the number have to be unique and be 0 to 49.

        Can anybody shed some sort of light on the code it would take
        hi dazza,
        do u simply mean that you want to generate numbers from 0 to 49 or does it mean something else?

        Comment

        Working...