|
-
Feb 20th, 2000, 06:27 AM
#1
Thread Starter
Junior Member
Is it possible to create random words for games like hangman?
-
Feb 20th, 2000, 07:36 AM
#2
Hyperactive Member
if what you are after is Real words like in hangman , then the best way is to create a "list " of words , and select one randomly
but if what you are after is creating
random words i.e a simple string of characters that doesnt have to
contain any significance than you can impliment a routine where :
first you pick a random number
second the number being in the range of the ascii code of characters
you add to a predefined string this the equivalent character from the ascii table
this a general idea ...
now if you are having any problems implementing the code , email me , i ll make it and send it to you ...
------------------
- regards -
- razzaj -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|