Prog 56: Fortune Cookie

///Name: Ilana Levy
///Period: 5
///Program Name: Fortune Cookies
///File Name: fortuneCookies.java
///Date Finished: 9/21/2015

import java.util.Random;

public class fortuneCookies
{
        public static void main( String[] args )
        {
                Random r = new Random();
                
                int x = 1 + r.nextInt(6), a = 1 + r.nextInt(54), b = 1 + r.nextInt(54), c = 1 + r.nextInt(54), d = 1 + r.nextInt(54), e = 1 + r.nextInt(54), f = 1 + r.nextInt(54);
                
                String response;
            
                
                if ( x == 1)
                    response = "Stick with your wife.";
                else if ( x == 2)
                    response = "You will make a new friend.";
                else if ( x == 3 )
                    response = "You will find adventure with the best of friends.";
                else if ( x == 4 )
                    response = "You will fall on some hard times.";
                else if ( x == 5 )
                    response = "Your boss will soon promote you.";
                else 
                    response = "Your winning lottery numbers are";
                
                System.out.println( "Fortune cookie says: " + response);
                System.out.println( a + "-" + b + "-" + c + "-" + d + "-" + e + "-" + f );
        }
}