src/com/mmpp/motivationapp/backend/Motivator.java
public String motivate() {
		if(completedYesterday == 0) {
			return getRandomMessage();
		}
		else {
			Random r = new Random();
			if(r.nextInt(2) == 1) {
				return getRandomHistoryMessage();
			}
			else {
				return getRandomMessage();
			}
		}
	}
/**
	 * The main motivator method, calls the sub methods to generate motivational message
	 * @return
	 */
The main motivator method, calls the sub methods to generate motivational message
@return
The main motivator method calls the sub methods to generate motivational message @return
public String motivate() {
		if(completedYesterday == 0) {
			return getRandomMessage();
		}
		else {
			Random r = new Random();
			if(r.nextInt(2) == 1) {
				return getRandomHistoryMessage();
			}
			else {
				return getRandomMessage();
			}
		}
	}
public String motivate ( ) { if ( completedYesterday == 0 ) { return getRandomMessage ( ) ; } else { Random r = new Random ( ) ; if ( r . nextInt ( 2 ) == 1 ) { return getRandomHistoryMessage ( ) ; } else { return getRandomMessage ( ) ; } } }
The main motivator method, calls the sub methods to generate motivational message
 @return
The main motivator method calls the sub methods to generate motivational message @return