# Assignemnt #56

## Code

```///colin hinton
///5th period
///Fortune
///Fortune.java
///10/29/2015

import java.util.Random;

class Fortune
{
public static void main (String [] args)
{
Random r = new Random();

int x = (1 + r.nextInt(6));

if ( x == 1)
{
System.out.println("The love of your life is right in front of you. ");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
}
else if ( x == 2)
{
System.out.println("You will run into a large sum of money. ");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
}
else if ( x == 3)
{
System.out.println("You will overcome your hardships. ");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
}
else if ( x == 4)
{
System.out.println("You will recieve an unexpected gift. ");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
}
else if ( x == 5)
{
System.out.println("You will fall off your chair. ");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
}
else if ( x == 6)
{
System.out.println("Thanks for saving me from the cookie. ");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
System.out.print(1 + r.nextInt(54) + "\t");
}
else
{
System.out.println("Save me");
}
}
}

```