Closed Thread
Results 1 to 2 of 2

Thread: Random Name Generator

  1. #1
    DevilsCharm's Avatar
    DevilsCharm is offline Programming God
    Join Date
    Jul 2006
    Posts
    884
    Rep Power
    0

    Random Name Generator

    Does anyone know how you make a program where you input a list of names and the program outputs a random one? I had a guy make me a program like that a long time ago but I lost it. If someone could get me a program like that, C++ or otherwise, I would be very grateful.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    Get all the names into a vector, or whatever else you want, and then generate a random number, and access the vector, f.ex. by using at() There's tons of information regarding random number generation, so pick up whatever search engine you like, and see if you find something useful. For vectors, you simply need a reference, if you don't know how they work.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Java: Random Name Generator
    By Sinipull in forum Classes and Code Snippets
    Replies: 2
    Last Post: 05-05-2011, 07:26 AM
  2. Random Password Generator
    By Sauce in forum Visual Basic Programming
    Replies: 13
    Last Post: 06-25-2009, 02:57 PM
  3. Need Help Creating A Random Generator
    By KingCrimson250 in forum PHP Development
    Replies: 4
    Last Post: 06-21-2009, 09:08 AM
  4. random quote generator
    By vocalstud69 in forum C and C++
    Replies: 30
    Last Post: 09-11-2008, 06:03 PM
  5. How do I program a random generator?
    By eddiewillers in forum General Programming
    Replies: 4
    Last Post: 07-24-2007, 12:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts