Howdy, Stranger!

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

In this Discussion

Number generator

I'm looking for a good number generator base for lottery use, I would like to be able to put in many numbers I consider lucky and generate picks from only those numbers.

Comments

  • dave1707dave1707 Mod
    Posts: 10,053
    function setup()
        num={5,8,45,34,23,56,48,32,36,57,61,13,21,39,44}
        for z=1,6 do
            n=math.random(#num)
            print(num[n])
            table.remove(num,n)
        end
    end
    
Sign In or Register to comment.