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