Tuesday 9 August 2011

A runes program written in C for Linux and Windows.

#include<time.h>
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
char ch;
int i;
srand((unsigned)time(NULL));
i=rand()%42;
if(i==0)
{
printf("Beorc. \n");
 printf("Birth, fertility, or marriage.\n");
}
else
if(i==1)
{
printf("Beorc, reversed. \n");
 printf("Miscarriage, abortion, or divorce.\n");
}
else
if(i==2)
{
 printf("Eolh. \n");
 printf("A new hobby, job or friendship. \n");
}
else
if(i==3)
{
printf("Eolh reversed. \n");
 printf("An offer which should be refused or a person to be avoided. \n");
}
else
if(i==4)
{
 printf("Os. \n");
 printf("Wisdom imparted to the enquirer by an older person or \n");
 printf("one more knowledgeable in the ways of the world or spirit. \n");
}
else
if(i==5)
{
printf("Os reversed.\n ");
 printf("Bad counsel from one who means harm.\n");
}
else
if(i==6)
{
 printf("Rad. \n");
 printf("Indicates a journey that will bring happiness.\n");
}
else
if(i==7)
{
printf("Rad reversed. \n");
printf("Travel difficulties. An unexpected trip to see sick relatives or friends.\n");
}
else
if(i==8)
{
printf("Ken. \n");
 printf("An illuminating experience which shows the way forward.\n");
}
else
if(i==9)
{
 printf("Ken reversed. \n");
 printf("Confusion, bad judgement and obscured vision.\n");
}
else
if(i==10)
{
 printf("Nyd. \n");
 printf("Caution is required if the enquirer is to succeed in his or her aims.\n");
 printf("The forces of destiny are working.\n");
}
else
if(i==11)
{
 printf("Nyd reversed. \n");
 printf("Sadness caused by those closest to the enquirer.\n");
}
else
if(i==12)
{
printf("Wynn. \n");
 printf("Hasty judgement or impatience lead to disaster.\n");
}
else
if(i==13)
{
printf("Wynn reversed. \n");
printf("Loss of affection. Self sacrifice.\n");
}
else
if(i==14)
{
 printf("Haegl. \n");
printf("Plans are delayed because the time is not right for their execution.\n");
}
else
if(i==15)
{
 printf("Haegl reversed. \n");
 printf("Delays and setbacks beyond the enquirers control.\n");
}
else
if(i==16)
{
 printf("Gyfu. \n");
 printf("Marriage or the cementing of a long standing realtionship.\n");
 printf("A gift which indicates shared love.\n");
}
else
if(i==17)
{
printf("Gyfu reversed. \n");
 printf("Sadness caused by those closest to the enquirer.\n");
}
else
if(i==18)
{
 printf("Ger. \n");
 printf("A warning not to speak ill of others or judge them before all the facts.\n");
 printf("are known.\n");
}
else
if(i==19)
{
 printf("Ger reversed. \n");
 printf("Harsh words spoken hotly may end a good friendship.\n");
}
else
if(i==20)
{
printf("Eoh. \n");
 printf("The solving of a matter which has been dormant for some time.\n");
 printf("News of a friend from the past.\n");
}
else
if(i==21)
{
 printf("Eoh reversed. \n");
 printf("A return to the old conflicts and situations which are a detriment to\n");
 printf("the present.\n");
}
else
if(i==22)
{
 printf("Pear. \n");
 printf("Unexpected material gains from a legacy or secret gift.\n");
}
else
if(i==23)
{
printf("Pear reversed. \n");
 printf("A secret is revealed which may harm the good name of the enquirer.\n");
}
else
if(i==24)
{
 printf("Feoh. \n ");
 printf("A new career opportunity is on the horizon.\n");
}
else
if(i==25)
{
printf("Feoh reversed. \n");
 printf("Material loss which cannot be recovered.\n");
}
else
if(i==26)
{
 printf("Tyr. \n");
printf("A passionate love affair is indicated. It will be a strong and lasting one.\n");
}
else
if(i==27)
{
 printf("Tyr reversed. \n");
 printf("The enquirer should be aware of casting his or her affections around for\n");
 printf("heartbreak will result.\n");
}
else
if (i==28)
{
 printf("Mannaz. \n");
 printf("Contacts with the outside world which will enlarge the perspective of the enquirer.\n");
}
else
if(i==29)
{
 printf("Mannaz reversed. \n");
 printf("A period of self-isolation or detachment from life so that new ideas can be nurtured.\n");
}
else
if(i==30)
{
 printf("Lagu. \n");
 printf("A revelation received through intuition, sudden inspiration or a dream.\n");
}
else
if(i==31)
{
 printf("Lagu reversed. \n");
printf("A woman will disrupt the life of the enquirer and bring many complications.\n");
}
else
if(i==32)
{
printf("Ing. \n");
 printf("News of a stranger from abroad.\n");
}
else
if(i==33)
{
 printf("Ing reversed. \n");
 printf("A wasted telephone call or a letter which will never be answered.\n");
}
else
if(i==34)
{
printf("Odal. \n");
printf("A will or a legacy bringing benefits to the enquirer or their family.\n");
}
else
if(i==35)
{
printf("Odal reversed. \n");
printf("An older person who, if left to their own selfish devices, could \n");
printf("become a long standing burden.\n");
}
else
if(i==36)
{
 printf("Sigel. \n");
 printf("Health, wise direction.\n");
}
else
if(i==37)
{
 printf("Porn. \n");
printf("An unexpected decision, good news from afar, unexpected luck.\n");
}
else
if(i==38)
{
 printf("Porn reversed. \n");
 printf("Beware making any hasty decisions, bad news.\n");
}
else
if(i==39)
{
printf("Dueg. \n");
printf("Contacts with the outside world which will enlarge your perspective.\n");
}
else
{
printf("Dueg revewsed. \n");
printf("A time of detachment so that new ideas can be nurtured.\n");
}
}

No comments:

Post a Comment