how do i create a lucky seven random number?
or a lotto program?

use the vb Rnd() function to generate random numbers
in order to generate a random number between 1 and 7 you write something like

randomize
number = 1 + CInt( Rnd() * 7 ) )

use the vb Rnd() function to generate random numbers
in order to generate a random number between 1 and 7 you write something like

randomize
number = 1 + CInt( Rnd() * 7 ) )

ty

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.