Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Exercise_03/Exercise_03_17/Exercise_03_17.java
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,7 @@ public static void main(String[] args) {
Scanner input = new Scanner(System.in);

// Generate a random integer 0, 1, or 2
int computer = (int)(Math.random() * 3);
int computer = (int)(Math.random() * 2.9);

// Prompt the user to enter a number 0, 1, or 2
System.out.print("scissor (0), rock (1), paper (2): ");
Expand DownExpand Up@@ -49,4 +49,4 @@ public static void main(String[] args) {
System.out.println(". You lose");
}
}
}
}