Thread: Random character generator algorithm

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    33

    Random character generator algorithm

    Will someone please critique my algorithm/plan?

    I need to write a program that will generate random characters (they can be either numbers, or upper or lower case letters) in the following format u328-iK23-o32k-A28j.

    My plan is to get a clock() reading after the user has entered a prompt, and use that to generate a random character. After the first and every subsequent random character is generated, I plan to use the clock at that point in the program to generate another one. Is this legitimate? Any comments, suggestions, or recommendations?

    Note: I need to do this without using any of the random number functions
    Last edited by m712; 12-07-2002 at 08:23 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. scanf returns random character
    By giannisapi in forum C Programming
    Replies: 3
    Last Post: 06-20-2009, 12:06 PM
  2. character set translation
    By password636 in forum C Programming
    Replies: 1
    Last Post: 06-08-2009, 11:45 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Random character
    By rusty0412 in forum C++ Programming
    Replies: 4
    Last Post: 06-27-2003, 06:29 AM