Every act of a person depends on his nature and nurture. Nature includes genetic component. Example: genes determine the IQ of a person. Nurture includes culture, society norms and belief systems. Neither nature nor nurture is in the persons hand.
If nothing is in your hands, what are you supposed to do? Idea of determinism is a threat to life. But free will (capacity to make choices) can be earned. You can travel from deterministic chance to choice. By understanding the cause and effect relation patterns and situations, you can free yourself from uncertainity. Failure helps in understanding how to succeed. This travel could be the ultimate purpose not only of human life but also of whole human kind.