You want integers or whole numbers. Place a % after integer variables. So N% = INT(RND * 10) + 1 gives you a range from 1 to 10. INT rounds down to the lower integer so the most the value in brackets is will be 9. So add 1 to make 10 as you already did. RND ranges from 0 to .9999999 only. na$ is a string value. A text letter or character or string of characters which is not given a value. name$ = "John" for instance requires quotation marks around the string value. It currently prints nothing. FOR E = 1 TO 10000: NEXT E would be a very fast delay on most newer computers. If you want delays less than 1 second somebody can show you a TIMER delay. GOTO 1500 1500 Is not necessary as the program progresses downward anyhow. Try to use loops to return. GOTO can be hard to chase around especially when line numbers are scattered around. They should count from top to bottom, but not every line needs one in QB. Like 5 10 15 20 etc. Don't use 0. |