I have done this one but I lost it somewhere so I'll start again.
Doublemindedness is a tough one. Complete trust is the most important ingredient to avoid doublemindedness. We must trust and believe in what God's Word says. We can't be a fence sitter. We either believe what the Word says or we don't. The Bible says we can't waiver. We don't want to be like a wave of the sea, blown and tossed by the wind. (James 1:6). If we doubt then there is not complete trust in God and we should not receive anything from the Lord. When we ask anything of God, He knows before we ask what we want, but He also knows what is best for us. We should always ask that His will be done.
Trials are painful for us, but they also build our faith. If there were no trials some of us would not talk to our Father. How sad that would be. How heartbroken would our Heavenly Father be. He loves us beyond anything we can even comprehend. Think of our earthly father and never talking to him because everything was going just fine, no problems. The Word says He will never leave us nor forsake us. We can always depend on Him. Trials are tough but they also make us aware that we can do nothing on our own, it is the Lord that is all wisdom, all loving, our everything .