Sunday, August 5, 2007

When am I getting married?

I know when I'm getting married! How? Well, I opened up MATLAB and ran the following piece of code:

>> rand('twister',sum(100*clock)) % Reset the random number generator
>> datestr(today+ceil((365*3+1)*rand)) % Pick a random date in the next three years
ans =
09-Nov-2008

There you go. Clearly, I am getting married on November 9, 2008. That's a Sunday, so it'll have to be after church. Mark your calendars now! :-)

3 comments:

Matt said...

I hope you chose the the right PRNG and seed!

Michelle said...

Ok, I don't understand the intricacies of Matt's comment, but can you run that code on anyone? Because I want to see how long I can hold off until I enter slave-I mean- marriage.

Unknown said...

In my humble opinion, finding out when you'll get married is far less impressive than finding out WHO you'll marry. Could you work on that, then let me use it? ;)