God's way

Ps 27:4: "One thing have I asked of the LORD, that will I seek after: that I may dwell in the house of the LORD all the days of my life, to gaze upon the beauty of the LORD and to inquire in His temple."

Monday, October 15, 2007

The Sovereignty of God over Randomness

I had a weird thought today. I was coding, as usual. Right now i have a bunch of software agents that play Prisoner's Dilemma and "learn" a best response strategy to what the opponent does. I don't really want to get in details. The only relevant thing to my story is that 10% of the time, agents explore, i.e. at a random moment in time (which is on average once every 10 steps) take a random action (the rest of the time, their action is determined by what they think is "best" for them).

So as i was commenting the code, i wrote something about the agent "choosing to cooperate". I stopped to think about the software agent's choice. Theoretically, i can't be sure about what the agent will do at a certain step, since there is a 10% chance that it will take a random action. I don't know when that's going to happen and i don't know what the action will be. Randomness is very useful, esp in what i'm working at right now, because it models the real world, where some events are random.
But, thinking about this, i realized that the random number generator that i use, is actually not completely random. It's a complicated mathematical function that can be used to generate a series of apparently random numbers. Since i'm using Java, i could probably find out what this function is, and know exactly when my agent will take a "random" action (i'll also know exactly what that "random" action will be) and be able to predict exactly what it will do.

This helps me think about the sovereignty of God and our choice. Lately, i've heard a lot about love as a choice and God's knowing and predestining things, about our "free will" and His sovereignty and have been praying that i'd get some understanding about it. I know that some things we can't know and understand completely. But some we can. And about some, we'll be curious our whole lives and never get them. But that can't keep us from asking questions and trying to figure out things.

So going back to my agents: it's true that they are just some peaces of software, following a pretty much deterministic algorithm. But using randomness, even if it's pseudo randomness, helps us model the world and a lot of times that works very well. And maybe, just as we are reflecting God and the whole world is under His sovereign control all the time, so our model reflects the real world, not at the same level of complexity, not having the same number of dimensions, but capturing a projection that can be grasped and modeled by us and our limited resources.

Currently listening: David Crowder Band - Everything Glorious

Tuesday, October 02, 2007

Match that!

I got this in an email. I don't usually like what i get in emails like that, but i thought this was really good.

You say: "It's impossible"
God says: All things are possible
(Luke 18:27)

You say: "I'm too tired"
God says: I will give you rest
(Matthew 11:28-30)

You say: "Nobody really loves me"
God says: I love you
(John 3:1 6 & John 3:34 )

You say: "I can't go on"
God says: My grace is sufficient
(II Corinthians 12:9 & Psalm 91:15)

You say: "I can't figure things out"
God says: I will direct your steps
(Proverbs 3:5- 6)

You say: "I can't do it"
God says: You can do all things
(Philippians 4:13)

You say: "I'm not able"
God says: I am able
(II Corinthians 9:8)

You say: "It's not worth it"
God says: It will be worth it
(Roman 8:28 )

You say: "I can't forgive myself"
God says: I Forgive you
(I John 1:9 & Romans 8:1)

You say: "I can't manage"
God says: I will supply all your needs
(Philippians 4:19)

You say: "I'm afraid"
God says: I have not given you a spirit of fear
(II Timothy 1:7)

You say: "I'm always worried and frustrated"
God says: Cast all your cares on ME
(I Peter 5:7)

You say: "I'm not smart enough"
God says: I give you wisdom
(I Corinthians 1:30)

You say: "I feel all alone"
God says: I will never leave you or forsake you
(Hebrews 13:5)

It reminded me of Piper's "Battling Unbelief": "We throw against the promises of sin the promises of God. We take hold of some great promise God made about the future and say to a particular sin, "Match that!" "