it is completely random and it should stay that way (if u have the time and mental energy, u can easily test this with enough awakenings and some math), if they change it to class specific (which is only primary stats) it will increase the price of gems and such awakenings accordingly
i have been awakening since ever and never ended on a loss, u just have to know when to keep/sell and start fresh, if u r awakening with 100 gems ofc the chance for ending on a loss is way higher than doing 1k gems and selling when u find smtng decent and going for fresh start, its just numbers and statistics
and i dont even need to mention this, the key is to awaken items that r new and popular instead of awakening items that have alrdy been thro awakening event(s), u r better off just buying those

Sent from my ONEPLUS A5000 using Tapatalk