If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Random Number Guessing Game

I don't understand where I am doing something wrong. The instructions is to create a random application that generates a random number in the range of 1 through 100. If it's too low state "too low, try again" and the same for if it's too high.

(I'm using visual basic)

So I declared my variables and wrote a code for the procedure. I declared x as my integer. Any advice on how to correct it?
Thanks for all help

Re: Random Number Guessing Game

Welcome to the forums!

What happens when you try to run it? Where does it STOP? That is where the first error is. If it doesn't get that far, then the compiler doesn't understand what you tried to do. (neither do it, from looking)

Also, use CODE TAGS if you want to post code.

Code:

' This is code
Dim a As Integer, b as Integer
Dim c as Integer, d as String
a=5
b=3
c = a + b
d = format("$.00, c)
Print d ' WHAT DOES IT PRINT HERE???
end

also, looks like you want the VB.Net forum. Random.Next(10) doesn't work in VB6