#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void main()
{
	int myrand,myrand2;
	int low = 1;//bottom of range
	int high = 5;//top of range
	srand(time(NULL));//once only per program
	
	myrand = rand() % (high-low+1)+low;
	
	printf("Welcome to Lucky Numbers!\n");
	printf("Your lucky number is:");

	printf("%d ", myrand);

	if (myrand == 4)
	{
		printf("\n\nWinner!!!!");
	}
	else
	{
		printf("\n\nBetter luck next time");
	}

}