Fortune.java



public class Fortune {

    public static void main( String[] args ) {

        double x = Math.random();

        if( x > 0.8 ) {
             System.out.println( "Today, you are very lucky!" );
        }
        else if( x > 0.5 ) {
             System.out.println( "Today, you are lucky!" );
        }
        else if( x > 0.2 ) {
            System.out.println( "Today, you are unlucky!" );
        }
        else {
            System.out.println( "Today, you are very unlucky!" );
        }
    }
}