There are different opinions regarding this topic: people that believe in God think that every aspect in life is not random, but part of His great plan; others, instead, say that first there is no God, so there is no discussion about it, or if there is a God, He wouldn't care about any little aspect of our life.
So, if we look at them they may look both good points, and if we use the scriptures we can find evidence on both. For examples when Jesus says to the people that are called to go and preach the gospel to not take a bag or an extra robe, because if God dresses the flowers and feed the birds, He would have much more care to his children. It gives reason to the first way of thinking.
Then in Isaiah 66 we read “Heaven is My throne and the earth is My footstool. Where, then, is a house that you could build for Me? And where will My resting place be?”. How much would He care if the whole Earth is His footstool? That gives credit to the second point of view. And there are many of those through the scriptures.
In my opinion, of what I have understood till now, the answer can be found in the middle: God is our Heavenly Father, He definitely care for every one of us, and He is giving us all the tools and the knowledge we need, but it is not a puppet master behind all things.
In the old testament we read a lot about punishment and blessings, but they needed that type of words to understand. Like in the garden of Eden when the Lord said “Unto the woman [...], I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children”, it is common belief that it is not God giving a punishment, but telling her what it will be. Why can't be the same with other things? Maybe God is telling us the laws of the universe, that at some action comes a reaction: if we do something the consequence can be bad, if we do differently the consequence will be good, a blessing, and like the punishment doesn't come from God neither does the blessing. It is just how it works.
If you what to get deeper on the topic? Try to check this: