15th Dec 09
Was walking out to lunch with the 2 interns, R & E. We usually have techie conversations, with today’s conversation touching on programming (E having just coded a small application). A few days ago E wondered how computers/applications calculated randomness. I posited that it should be quite simple (having learnt a bit about it before); some of the ways:
- To include a certain percentage in which a certain event happened.
- In RPG games, a certain ratio was assigned to each tile your character stood on, determining whether you would ‘randomly’ face an enemy. The ratios in each tile changed every second or so, so it was rather time-dependant.
- The use of the math.random function, as in languages like Java.
E debated that even with percentages and ratios, it’s not really random. The programmer still preassigns certain ranges of values. And we really didn’t know how the math.random function worked. “How does the computer know how to generate random numbers, even with the math.random function?”, he exclaimed.
Flash back to today.
Having researched on randomness, E revisited the topic. What we thought to be random, was not random at all. Obviously human beings could come up with random numbers, but computers, although having artificial ‘intelligence’ would have to base that randomness on something. It turns out that certain computers/applications base it on a long string-ed number. E.g something like 2348923048902348902348909090909090909090909090909090909090909090909090909090909090909023481394891057
1907591375901759017219830123893284902384890849084902384902384908329048390284092384903284902384902384902
3849238401849018490389014890134890384290489008.…
You get the idea. It’s a fixed, pre-determined long of digits. And I guess the application will pick a certain portion of that number at a certain point in time to work with and generate that random number.
But my main point today is not about computer programming. E’s next statement is the main focus of today’s topic. He said that even whatever happens in life is not random. There’s cause and effect. As seen in computer programming, random events or numbers are not really random. There’s something out there that decides, causes things to happen. It’s quite heartening to hear that from a pre-believer.
So I call out to my brothers & sisters who already believe. Whatever happens in your life… know. Know that nothing happens by chance. They can be caused by your own, and others’ actions. Know that Our Father, the great programmer of life, is in control. I quote from one of my older blogs(25 Dec 2005!):
“God is the creator. Therefore He knows all the variables. He knows all the possible permutations and combinations which will lead to the fulfillment of His perfect plan.
So we might see things as being bad, or we question why certain things have to happen. Through my current walk with Christ, I have realised that God allows certain things to happen. When you’re ‘in it’; i.e the ‘situation’. You won’t be able to see why it happens. But one day God will let you see why it happens. Be it 1 month after, or years after. But only then will you acknowledge that, ‘Yes, God has everything in control’. And He is able to use our mistakes and failures for His glory.”
I end this entry by saying that for God to make the best out of it, we must desire to be obedient to Him, to be set apart. Oh what bountiful blessings flow from the grace of God when we are right with Him!