# Random Name Generator

**URL:** <https://forum.choiceofgames.com/t/random-name-generator/1433>\
**Category:** ChoiceScript Help\
**Created:** [June 6, 2013, 3:01pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433 "2013-06-06T15:01:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [June 6, 2013, 3:01pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/1 "2013-06-06T15:01:26Z")

</div>

I may have created a random name generator. I’m not sure though since I just mashed it together in a brief time and I’ve only tested it using the choicescript tester. And I’m not the best coder.

I grabbed the top 100 boy’s names from [http://www.behindthename.com/top/lists/us/2012/100](http://www.behindthename.com/top/lists/us/2012/100)

[http://pastebin.com/dsBViM4q](http://pastebin.com/dsBViM4q) was what I came up with. I couldn’t remember my dropbox info so that’s just code, not testable.

Is there a better way to do this? If I’ve done it a weird and convoluted way and there’s a much easier method I’d love to know. If the code actually works and anyone would like it for randomly selecting a male name for any purpose feel free to grab it.

UPDATE: [https://dl.dropboxusercontent.com/u/154988802/chobox/namegenerator.txt](https://dl.dropboxusercontent.com/u/154988802/chobox/namegenerator.txt)

UNISEX UPDATE: [https://dl.dropboxusercontent.com/u/154988802/chobox/namegenerator2.txt](https://dl.dropboxusercontent.com/u/154988802/chobox/namegenerator2.txt)

---

<div class="post-metadata">

**Author:** ![lackofmops](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lackofmops/32/986_2.png) [@lackofmops](https://forum.choiceofgames.com/u/lackofmops)\
**Post date:** [June 6, 2013, 3:12pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/2 "2013-06-06T15:12:55Z")

</div>

Wow this is really cool, thanks! This will come in handy for my game.

---

<div class="post-metadata">

**Author:** ![CS\_Closet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cs_closet/32/684_2.png) [@CS\_Closet](https://forum.choiceofgames.com/u/CS_Closet)\
**Post date:** [June 6, 2013, 3:54pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/3 "2013-06-06T15:54:13Z")

</div>

@FairyGodfeather  
That’s about how I would’ve started. Just add some girl’s names, some last names, and probably some way for the player to preview the name and either accept or try again before setting it in the permanent stats.

Of course, having different versions, such as fantasy/modern/futuristic/Japanese/whatever would be awesome as well. That’s probably a huge workload, but I’m certain many people here would love to use one of the flavours of the script for their games.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [June 6, 2013, 4:01pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/4 "2013-06-06T16:01:47Z")

</div>

If it’s to be used to generate NPC names, I’d probably also add a check in to ensure that it’s not randomly picked the same name previously.

The if you don’t like this name then try again option should be easy enough.

The female name version should go quicker, as should the last names.

I’d been vaguely considering a werewolf name generator too but I was looking for a list of names. And doing it just using syllables to make up fake names.

[http://pastebin.com/GZhc8RDb](http://pastebin.com/GZhc8RDb) Added the girls.

---

<div class="post-metadata">

**Author:** ![CS\_Closet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cs_closet/32/684_2.png) [@CS\_Closet](https://forum.choiceofgames.com/u/CS_Closet)\
**Post date:** [June 6, 2013, 4:11pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/5 "2013-06-06T16:11:43Z")

</div>

The modular syllable version sounds like it’d be tricky for most western names. Can’t lie, though; it’d be awesome if you could design a way for that to work well. 🙂

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [June 6, 2013, 5:55pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/6 "2013-06-06T17:55:47Z")

</div>

And added surnames as well which I took off the top 100 American Surnames.

The code is at: [https://dl.dropboxusercontent.com/u/154988802/stuff/web/mygame/scenes/startup.txt](https://dl.dropboxusercontent.com/u/154988802/stuff/web/mygame/scenes/startup.txt)

And if anyone wants to try it out: [https://dl.dropboxusercontent.com/u/154988802/stuff/web/mygame/index.html](https://dl.dropboxusercontent.com/u/154988802/stuff/web/mygame/index.html)

I’ll probably then add something to make sure the first name isn’t the same as the second and also to allow you to reroll only the first name, and perhaps create a fullname variable as well.

Please if you want to use the code, alter it, whatever, take it and do with it what you want.

---

<div class="post-metadata">

**Author:** ![lackofmops](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/lackofmops/32/986_2.png) [@lackofmops](https://forum.choiceofgames.com/u/lackofmops)\
**Post date:** [June 6, 2013, 8:47pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/7 "2013-06-06T20:47:16Z")

</div>

Thanks again! I would be interested to see a fantasy name generator.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [June 6, 2013, 9:10pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/8 "2013-06-06T21:10:54Z")

</div>

I was thinking it would be easier to do something like the wolf name generator, like the one on: [http://fyeahmoonmoon.tumblr.com/post/49079589405/meefgal-all-the-moon-moon-posts-that-ive-seen](http://fyeahmoonmoon.tumblr.com/post/49079589405/meefgal-all-the-moon-moon-posts-that-ive-seen) and using that to randomly generate names. Of course someone will end up being Moon Moon.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [January 6, 2014, 7:19am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/9 "2014-01-06T07:19:01Z")

</div>

Wow. I forgot I made this. I did give the werewolf name generator a go but I got bored of it. Ditto for the syllable one. Bumping this in the hope it’ll encourage me to have another look.

Does anyone have lists of parts of werewolf names? Or syllables to make up fantasy names or something? Or hey want to try making a choicescript generator of your own?

---

<div class="post-metadata">

**Author:** ![Babisko](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@Babisko](https://forum.choiceofgames.com/u/Babisko)\
**Post date:** [January 6, 2014, 7:26pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/10 "2014-01-06T19:26:09Z")

</div>

Have you tried looking at Seventh Sanctum, at least for ideas for names to use? They have different kinds of generators for names, from normal, to greek names, to vampire to fantasy and a number of others.

There’s also another site called chaotic shiny that has a name jumbler, so you can put in a normal name and it’ll put out a load of strange/unique jumbles of it.

---

<div class="post-metadata">

**Author:** ![fantom](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fantom/32/8537_2.png) [@fantom](https://forum.choiceofgames.com/u/fantom)\
**Post date:** [January 7, 2014, 9:00am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/11 "2014-01-07T09:00:19Z")

</div>

@FairyGodfeather Mind if I use this for my game?

---

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/275971_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [January 7, 2014, 9:01am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/12 "2014-01-07T09:01:48Z")

</div>

It’s a cool concept, but it would also make it harder for readers to discuss NPCs with each other and the author.

---

<div class="post-metadata">

**Author:** ![fantom](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fantom/32/8537_2.png) [@fantom](https://forum.choiceofgames.com/u/fantom)\
**Post date:** [January 7, 2014, 9:09am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/13 "2014-01-07T09:09:02Z")

</div>

@Samuel_H_Young True, but personally I was going to use it to generate a unique list of names for the player along with one for inputting their own.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [January 7, 2014, 9:13am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/14 "2014-01-07T09:13:03Z")

</div>

@Fantom Sure. Feel free to. Take it, edit it, do whatever you want with it. I’d actually love if someone got some sort of use out of it.

@Samuel_H_Young I’d actually intended for it to generate PC names, although it likely could be used for NPCs as well.

@Babisko Yeah, that’s one of my favourite name generator sites. I’ve never heard of chaotic jumbler so I’ll give it a look.

---

<div class="post-metadata">

**Author:** ![Prototype](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@Prototype](https://forum.choiceofgames.com/u/Prototype)\
**Post date:** [January 7, 2014, 10:02am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/15 "2014-01-07T10:02:11Z")

</div>

Well this could really be used in name selection, you could also give the player to choose a random name if they don’t like any of the names and don’t have any ideas of their own either

mind if i use it?

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [January 7, 2014, 10:03am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/16 "2014-01-07T10:03:34Z")

</div>

@Prototype Please do! That’s what I was hoping to use it for, to come up with names for character generation.

---

<div class="post-metadata">

**Author:** ![Prototype](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@Prototype](https://forum.choiceofgames.com/u/Prototype)\
**Post date:** [January 7, 2014, 10:03am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/17 "2014-01-07T10:03:49Z")

</div>

thanks.

---

<div class="post-metadata">

**Author:** ![fantom](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fantom/32/8537_2.png) [@fantom](https://forum.choiceofgames.com/u/fantom)\
**Post date:** [January 7, 2014, 7:37pm UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/18 "2014-01-07T19:37:14Z")

</div>

Ok guys, here’s a small scene that randomly generates a list of four names or lets you choose your own. Here’s the link to the files:

> **[name generator](https://www.dropbox.com/sh/jd7w6iktsntzx1p/GcB2ecHNyV/name%20generator)**
>
> Shared with Dropbox

Let me know what you think.

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [January 8, 2014, 8:01am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/19 "2014-01-08T08:01:38Z")

</div>

@Fantom Oh that looks awesome. It’s nice.

---

<div class="post-metadata">

**Author:** ![fantom](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fantom/32/8537_2.png) [@fantom](https://forum.choiceofgames.com/u/fantom)\
**Post date:** [January 8, 2014, 9:48am UTC](https://forum.choiceofgames.com/t/random-name-generator/1433/20 "2014-01-08T09:48:20Z")

</div>

@FairyGodfeather Did you get a chance to look at the code? I did it mainly as a coding exercise.

[Next page](https://forum.choiceofgames.com/t/random-name-generator/1433.md?page=2)
