Results 1 to 2 of 2

Thread: Random Words

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    18

    Post

    Is it possible to create random words for games like hangman?

  2. #2
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post


    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
  •  



Click Here to Expand Forum to Full Width