Author Topic: Name generator - a solution for naming!  (Read 4103 times)

0 Members and 1 Guest are viewing this topic.

Offline Rodolffo

  • Volunteer
  • *
  • Posts: 6
    • View Profile
  • Nick: 3rdMinn_Rec_Rudolph_Woodbury
  • Side: Union
Name generator - a solution for naming!
« on: January 06, 2013, 12:11:02 am »
Hello everyone!
About a week ago, I was joining a regiment and I had to choose a name. I couldn't choose a name so I copied my regiment's list to text files and wrote a program which randomly generates a first and a last name. Although when I looked at the list, I only used the last name generated by it because Rudolph was given :) , I think some of you can find this interesting.

So, the program itself generates a first and a last name given from a list provided by 3rd Minnesota Volunteer Infantry Regiment. You only have to unrar this (be sure to check that the txt files are in the same directory too!).

Stay tuned for updates! A list full of American histrorical names is coming soon! Alternatively, feel free to modify the firstnames and lastnames TXT files!

VirusTotal: https://www.virustotal.com/url/bb2c9e627050101d4341554c73ad736f9dbcb5cd026dfca703e152bdf2d93c6d/analysis/1357427349/
The program itself: http://cl.ly/0k2h3W3B1O2C/Release.rar


Also, be sure to check out my regiment's topic!
Rodolffo
« Last Edit: January 06, 2013, 12:17:23 am by Rodolffo »

Offline pod455

  • Sergeant Major
  • *
  • Posts: 424
    • View Profile
  • Nick: Padraig
  • Side: Neutral
Re: Name generator - a solution for naming!
« Reply #1 on: January 15, 2013, 08:56:47 pm »
might help out "new_player"s

Offline Vincenzo

  • Flying Squirrel Dev
  • FSE Developer
  • ****
  • Posts: 2353
  • Dutchman living in Allenstein, Ostpreußen.
    • View Profile
    • Flying Squirrel Entertainment
  • Nick: FSE_Vincenzo
  • Side: Union
Re: Name generator - a solution for naming!
« Reply #2 on: January 17, 2013, 01:13:20 am »
Simple C#  program, not much wrong in it, one suggestion...

Why do you calculate total possibility count like this:

Code
 for (int index1 = 0; index1 < firstNames.Count; ++index1)
      {
        for (int index2 = 0; index2 < lastNames.Count; ++index2)
          ++num;
      }

Why not simply
Code
num = firstNames.Count * lastNames.Count;

Offline Odysseus

  • Donator
  • *
  • Posts: 2062
    • View Profile
  • Side: Neutral
Re: Name generator - a solution for naming!
« Reply #3 on: January 17, 2013, 01:19:22 am »
Coding... Ftw..

Offline InfamousBeats

  • Colonel
  • *
  • Posts: 4169
  • Groupfighting Admin | 10/10 IGN: Would bang...
    • View Profile
    • Enlist into the 63ème Régiment d'Infanterie de Ligne
  • Nick: 63e_Conseilleur_Infamous
  • Side: Union
Re: Name generator - a solution for naming!
« Reply #4 on: January 17, 2013, 09:36:41 pm »
I came to this thread to see something cool, found coding, left.

Spoiler
Jks <3 YOU GUYS!!!
[close]

Offline Specimen

  • Sergeant Major
  • *
  • Posts: 571
  • Marche ou crève.
    • View Profile
  • Nick: Specimen
  • Side: Neutral
Re: Name generator - a solution for naming!
« Reply #5 on: January 22, 2013, 08:45:58 am »
Same for me lawl.

Offline Rodolffo

  • Volunteer
  • *
  • Posts: 6
    • View Profile
  • Nick: 3rdMinn_Rec_Rudolph_Woodbury
  • Side: Union
Re: Name generator - a solution for naming!
« Reply #6 on: January 25, 2013, 11:58:31 pm »
Simple C#  program, not much wrong in it, one suggestion...

Why do you calculate total possibility count like this:

Code
 for (int index1 = 0; index1 < firstNames.Count; ++index1)
      {
        for (int index2 = 0; index2 < lastNames.Count; ++index2)
          ++num;
      }

Why not simply
Code
num = firstNames.Count * lastNames.Count;
Indeed, F from maths, great.
« Last Edit: January 26, 2013, 02:44:24 pm by Rodolffo »

Offline Xeroth

  • Donator
  • *
  • Posts: 946
  • 3E GOD TIER
    • View Profile
  • Side: Union
Re: Name generator - a solution for naming!
« Reply #7 on: January 26, 2013, 01:45:23 am »
what they say
Simple C#  program, not much wrong in it, one suggestion...

Why do you calculate total possibility count like this:

Code
 for (int index1 = 0; index1 < firstNames.Count; ++index1)
      {
        for (int index2 = 0; index2 < lastNames.Count; ++index2)
          ++num;
      }

Why not simply
Code
num = firstNames.Count * lastNames.Count;

what it looks like

Code
あなたがグーグルこの変換した場合、私は本当にあなたの息子のために気分が悪いいったい何を言っているペニスをなめる
A melee competant 6th Season NWL Champ
Karth are we still jealous of your reg?

Offline Rodolffo

  • Volunteer
  • *
  • Posts: 6
    • View Profile
  • Nick: 3rdMinn_Rec_Rudolph_Woodbury
  • Side: Union
Re: Name generator - a solution for naming!
« Reply #8 on: January 26, 2013, 02:45:47 pm »
what they say
Simple C#  program, not much wrong in it, one suggestion...

Why do you calculate total possibility count like this:

Code
 for (int index1 = 0; index1 < firstNames.Count; ++index1)
      {
        for (int index2 = 0; index2 < lastNames.Count; ++index2)
          ++num;
      }

Why not simply
Code
num = firstNames.Count * lastNames.Count;

what it looks like

Code
あなたがグーグルこの変換した場合、私は本当にあなたの息子のために気分が悪いいったい何を言っているペニスをなめる

I can imagine how the Battle Cry of Freedom code looks like :O