It needs to generate seven random numbers and sort them. Any help would be greatly appreciated.
How do I make a lottery program in Visual Basic?
To generate the random number you can use the inbuilt function Rand() or Rnd()
Use this line of code. This will generate a seven digit random number:
num = CLng((10000000 - 1 + 1) * Rnd + 1)
where num is ur seven digit random number
wholesale flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment