I'm making a program that generates descriptions of people, elves and other races etc.
It involves A LOT of arrays and lists that have 1 word from it picked and then put into a sentence. A sample array would look like:
public string[] hairfront = {
"side swept bangs", "straight bangs", "choppy bangs", "wispy bangs",
"parted straight bangs", "parted choppy bangs", "blunt single length bangs",
"bangs shorter on one side than the other", "pixi cut bangs"}
Random class would then pick a number and return the corresponding string wherever I have RAE(array name)
Example: "The person has " + RAE(hairfront)
I would like to make RAE as a array type that will have a method that picks a random string to be put into the sentence.
The following pseudo code describes what I want my code to look like:
new RAE(hair)={ "blah", "brown", "long"}
Public string generate_description "the persons hair is" RAE(hair)
it will become "the persons hair is brown"