I decided to write a random generator that would generate a random character and log it to the console. Attributes included were alignment, race, and class, along with a flavor text, e.g. “Yay! You’re a Neutral Human Wizard!”
The biggest challenge I had was getting remote repositories to work properly. I had to turn to a more experienced programmer for help, but he helped me through troubleshooting so that I could remotely push from my laptop onto GitHub.
The program is very simple. Four arrays with the flavor text, alignment, race, and class. A random number generator that takes the array as an argument and returns a random number, and a function that generates the random selections with the number generator and then logs the text to the console as a unified message.
I realized as I was writing this that I could make the program better by having the random number generator take the array as an argument and then return the selection, rather than just a random number. Maybe I’ll make that modification later. For now, it works.
What do you think?