If the previous statements were true, then a question is "why bother trying?". The ones that believe they can effect change are also the ones that do. Whether this is a consequence of free will or the divine RNG is up for religious and philosophical debate.
How do we deal with trying and results? The Bhagavad Gita has some good lines on this that several other religious traditions surely share. Detach yourself from the outcome and fulfill your duty. In this way you will find greater liberation and peace.
You may want to brush up on nature vs nurture: https://en.wikipedia.org/wiki/Nature_versus_nurture.
For those who are rightly skeptical of religion and have written it off entirely, I present you a quote:
"All men seek to be enlightened. Religion is but the most ancient and honorable way in which men have striven to make sense out of God's universe. Scientists seek the lawfulness of events. It is the task of Religion to fit man into this lawfulness."
- Dune