Depends on which NPC you want to get. THe majority of NPCs will have a random race. This is usually evenly balanced between all available races, but on homeworlds the ratio is skewed to something like 80-90% from the races that come from that homeworld (ie Rodia will have 80-90% Rodians, while a planet like Tatooine will have that 80-90% split evenly amongst the 3 available races that call it their homeworld), with the remainder being randomly chosen from the rest of the races.
Names are also randomly chosen.
Custom NPCs, you can choose the name and the race.