A: (Found in 2 Nephi of the Book of Mormon)
"32 And again, the Lord God hath commanded that men should not murder; that they should not lie; that they should not steal; that they should not take the name of the Lord their God in vain; that they should not envy; that they should not have malice; that they should not contend one with another; that they should not commit whoredoms; and that they should do none of these things; for whoso doeth them shall perish.
33 For none of these iniquities come of the Lord; for he doeth that which is good among the children of men; and he doeth nothing save it be plain unto the children of men; and he inviteth them all to come unto him and partake of his goodness; and he denieth none that come unto him, black and white, bond and free, male and female; and he remembereth the heathen; and all are alike unto God, both Jew and Gentile.
23 For behold, my beloved brethren, I say unto you that the Lord God worketh not in darkness.
24 He doeth not anything save it be for the benefit of the world; for he loveth the world, even that he layeth down his own life that he may draw all men unto him. Wherefore, he commandeth none that they shall not partake of his salvation."
God has given us the guidelines to be happy (the commandments). He literally commands us not to do things that will hurt us or others. If we all followed the commandments we would live in a world that was free from murder, lying, stealing, cheating, hurting.
God does not wish any of us to experience the effects of bad choices. But because God loves us and wants us to chose for ourselves, he gave every man their agency. We have the privilege to choose between good and evil. Do not blame God for the bad in the world, but be thankful that He has brought good into the world. And all that is unfair about the world can be made right through his atonement :)
Smile, and remember you're a child of God. He wants you to be happy!
When life seems unfair remember:
Keep Calm & Wait On
I promise there are brighter days ahead :)
Learn more at mormon.org