Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question...

Status
Not open for further replies.

The

Programmer
Jul 30, 2001
92
CA
Kind of dumb, but how would you make the computer select a random number between 1 and 10?
 
I tried making X a variable, then I put:

X= RND 1-10

But it won't let me put the "1-10" part without an error message. How do I specify it's between 1 and 10?
 
Nevermind, I got it. I put (1-10) instead, it seems to work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top