Sign in to follow this  
Antonym

Checking input/random number

Recommended Posts

I am trying to program a MUD and wanted to know, when you start you are asked to enter a name and well I wanted to know, usually if you enter a name with numbers and/or spaces in it it's taken as invalid. How do you check the input for numbers and/or spaces, how is this done? Second question, how can I get a random number? Specificly a random number between two numbers? Edit: terribly sorry, forgot to add I program on c++. Thanks.

Share this post


Link to post
Share on other sites
Both of those questions have answers that depend on what programming language you are using and possibly what libraries you are using and operating system your program is running on.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this