The thing about dreams
Different people have their views regarding dreams. Some give it a religious connection. They think it's a spiritual thing.
For them, a dream tells you that something is about to happen. If it's a negative dream, it could be a spiritual warning that something bad is about to happen. If it's a positive dream, it could be a spiritual sign that something good is coming.
As a result, most people who give dreams a religious undertone are usually worried after a bad dream or nightmare and decide to pray or even tell their pastor about it.
There's another aspect to look at dreams from. Dreams can be as a result of our imagination. A result of activities going on in our brains. When we fall asleep, I believe our minds stay active. As a result, maybe we begin to unconsciously imagine things. It could be that our subconscious comes up with scenarios based on the events of the past or something that's bothering us or even from the events of the day.
Dreams have a purpose in my opinion. Most times, dreams give us a different idea to something we never would have thought of. Dreams sometimes show us an angle we don't see. People get business ideas from dreams. It could be that you were thinking about a problem while on your bed, and then you fall asleep only to have a dream about how to solve that problem.
Dreams could reveal to us impending danger if we do certain things. It makes us rethink our decisions. When you have a bad dream about an action you're supposed to take the next day, it would make you rethink taking that action. You would weigh the pros and cons and even seek advice. This has saved people from trouble.
Some dreams come true, some don't. I think it's a thing of chance. There's no guarantee that a dream will come true. It could just be a coincidence that the thing you dreamt about happened. I get that people want the good dreams to always come true. While that is good, it may not always be that way. Most times, it's up to us to make that dream come true by our actions.
On the other hand, we don't want bad dreams to come true, and we do what we can for it not to come true. The bottom line is that there is no certainty of dreams, whether good or bad, coming true. I think to some extent, it's a thing of chance, and to some extent, it's up to us.

Dreams are seen from different perspectives and it all depends on the individual and what they believe.
I agree to the point to which you said it's a thing of chance, still one still has to be alert at wherever they come