Angry with G-d?

When tragedy strikes, what response allows us the best personal outcomes?