20090325

Why thorw darts when you can write a program???

Ok so most people will throw darts at a board, spin a spinner, flip a coin, or some other activity in order to achieve randomness.
I on the other hand, with time on my hands and mound of projects slowly but surly growing higher decided to make a program to tell me what I should do today, and since my program told me to blog,I am blogging. :D

The Result:
Photobucket
//The Program:(c++)
//Author - Richard
#include <iostream>
#include <cstdlib>
using namespace std;

int main(int argc, char** argv)
{
srand( atoi(argv[1]) );
int x = rand() % 5; //mod # of choices

switch (x)
{
case 0: cout << "You choose to work on StoopidGenious.com\n";
break;
case 1: cout << "You choose to work on Bestraddled: The Web Comic\n";
break;
case 2: cout << "You choose to take and edit pictures \n";
break;
case 3: cout << "You choose to draw something\n";
break;
case 4: cout << "You Choose to Blog something\n";
break;
default: cout << "You choose to do nothing today\n";
break;

}//switch

}//main