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.
//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.comn”;
break;
case 1: cout << “You choose to work on Bestraddled: The Web Comicn”;
break;
case 2: cout << “You choose to take and edit pictures n”;
break;
case 3: cout << “You choose to draw somethingn”;
break;
case 4: cout << “You Choose to Blog somethingn”;
break;
default: cout << “You choose to do nothing todayn”;
break;
}//switch
}//main



Leave a Reply