Shouldn't gender be integer or boolean instead of string?
And going through the list looking for a random name is going to be slow with lots of names. An array might be better, depending upon what you want to do.
And going through the list looking for a random name is going to be slow with lots of names. An array might be better, depending upon what you want to do.