I had a skim, yes.
I’m not overly keen on long lists of if statements, so I tried an alternate method of referencing.
I guess it’s just a code legibility preference, I doubt it makes much difference to performance (good or bad), and I didn’t bother converting all 300(?) names.
But good job @FairyGodfeather - this is pretty cool!
Example: http://bit.ly/1a0Wr2D
Example Code
@CJW Oh, that’s complicated. It’s really interesting to see an alternative way to do things. I’d thought having so many variables, even temp ones might be bad. I’ve no idea why though. And well, actually I never even contemplated doing it with temp variables.
Oh I do like it in the ide though. That’s awesome to be able to do that.
I took the names from http://www.babycentre.co.uk/a1026121/unisex-baby-names and am currently working on a unisex name list for the generator.
Of course then I remember @CJW had some alternative code that used setref.
And also that there’s the new way of doing things. Only it’s still a little beyond me and somewhat overwhelming.
So I’m likely going to set aside some time and try and wrap my head around rewriting the code.
I take it I can rewrite this code using the techniques laid out New ChoiceScript features for programmers so that it doesn’t use a zillion if commands?
So I discovered I had actually assembled a list of unisex names. I’ve not actually tried this code out to see if it works so if someone else could that’d be great.
The unisex names are just what was on my list that I’d gathered from all over. I don’t like all of them, but I couldn’t decide which to cull which is why there’s 106 instead of 100.
https://dl.dropboxusercontent.com/u/154988802/chobox/namegenerator2.txt
I tossed it into the CSIDE desktop beta for a test run and am happy to report it works just fine (passed Quicktest too). I like it!
Two other options might round things off nicely:
-
First screen, an option to choose a Unisex name specifically (handy for gender-flip designs I should think?) as well as male or female.
-
Second screen, an option to keep the surname and try out a new forename. Not essential, just worth consideration to round things off.
-
AHA! Thanks! I can’t believe I forgot to edit it to add in the unisex name choice. Thanks for pointing that out.
-
Great idea!
I’ll get those done later today.
There are actually some really great websites to generate fantasy names. They sound really cool.
Some of which I personally use are:
- Fantasynamegenerators
- Fantasynamegen
- Donjon, etc.
Although there are even many more except from them. You can read more about it.
Refer:
I advise you to use SpinXO! It uses artificial intelligence and tells you if the nickname is available on the video game you want.
Hi I made a random name generator app for my Bootcamp class, so I was inspired by my instructor random picker app that picks random people name in class and he had this problem whereby the same name get randomly called twice.
I went ahead to build an improved version that keep track of names that are called and allow the user to view who have yet to be called and have already been called do check it out
you can check some websites which generate random names here - WEBSITES