//Lottery numbers by Gaynor 2/2/11
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void main()
{
int myarray[6];
int low=1;
int high=49;
int i;
srand(time(NULL));

for(i=0;i<6;i++)
{
myarray[i]=rand()%(high-low+1)+low;						//store random in array
}
printf("Your numbers are:");

for(i=0;i<6;i++)
{
printf("%d ",myarray[i]);
}

}