Greetings, I hope you all are having a good day.
I am curious on how you pick a race or the sex of your main character for a particular playthrough ?
Is this something that is totally random to you ?
Do you pick a race that allows you to min-max ?
Or is there some other way ?
I am interested to know what criteria people here use in picking a race for a playthrough.
Cheers.

I'm one of those people who have to at least have a playthrough of one of each race (dwarf, qunari, human, elf) and at least one male/female playthrough, mainly for story/game experience and character writing. For BioWare games it usually depends on the available romance options (helps me narrow down my choice since I usually go with a theme. I have far more female than male in Inquisition because of better options. Already did Josephine once and I can only romance Dorian/Iron Bull so many times. At least Cullen and Sera allowed for a different experience). For other games it depends, mainly because I'm an 'altoholic' (don't ask how many Skyrim characters I have...) or just because I like a fresh face or idea.
In Inquisition I have
Three male Trevelyans (one of each class)- All romance Dorian because he's the only appealing option available to male characters. Josephine was nice but one run was enough and Iron Bull really doesn't suit Trevelyan to be honest (at least in MY own opinion and concept, feel free to disagree).
One male Lavellan (mage)- Romanced Iron Bull since he was the only non-human available to male elves. For RP reasons I don't see the appeal of Josephine (human female) and Solas/Sera were unavailable. Dorian could've worked but it was my first run and I was keen on Iron Bull from the start.
Two female Cadashes (one warrior and one rogue)- Warrior romanced Josephine and Rogue romanced Sera. The rogue I already had as a concept (Dwarf + Elf romance ftw!) while the Warrior was just a 'happen to be' playthrough.
One female Lavellan (warrior)- Romanced Cullen. Want to do another for a Solas run but that will be eventual. Already did the Sera and Josie-mance with another character (and no further interest).
One female Adaar (mage)- Romanced Iron Bull (makes sense for a qunari obviously).
*have no interest in romancing Cassandra or Blackwall whatsoever. Even though my characters are NEVER self inserts I just don't find enough appeal.
Mainly depends on appearance and the options available to them.
For DnD/Forgotten Realms based games- I like Planetouched/Half-Elves a lot but usually go human because of bonus feats and appearance. Really dislike gnomes/halflings since I like my protagonists somewhat tall. Plus most of the campaign settings fit humans. Gender's always been neutral in these campaigns but I lean towards male out of preference.
Examples:
Dragon Age- Mainly human because they get the most of the options and story. Dwarves are surprisingly second since I love Origins' dwarves. Elves in Origins are short humans and Inquisition doesn't have a proper elf romance for a male character. Qunari are on the lower end of the spectrum because quite frankly their armor options are shoddy. Managed only one qunari run (which WAS fun and made for a unique experience but wouldn't play one again, at least in Inquisition). Gender ratio is pretty equal, Origins I'm pretty even, DA2 I lean heavily towards male, Inquisition I lean towards female if only because better romance options.
Pillars of Eternity- Tie between Elves, Godlike and Human since those are my most gravitated to races. Aumaua are neat but really haven't found a character concept I like for them. Currently running a dwarf that I'll EVENTUALLY finish (put PoE on the backburner for a long time, waiting for the 2.0 update and expansion) but really don't select them or orlan (who are just furry wild halflings). Gender ratio is equal.
Arcanum- Humans, elves, half-orcs and half-elves. I won't play anything too small, stupid or ugly.
Amalur- Dokkalfar because they're the best looking but I have made one of each at least.
MMOs- Usually some form of High or Dark Elf. Whatever looks mystical, flawless, etherial and appealing.
Is it random? Usually not.
Min/max is really not my thing unless I'm playing an old school game like Wizardry 8 or any of the isometric rpgs. And even then in isometrics I pick human due to dual classing/best options while Wizardry 8 is whoever I want. I do like my character to fit the lore/background and pick a class that suits him/her. Meaning I'm not one for elven paladins or halfling wizards.