Skip to content

Commit

Permalink
added comment and log for random instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
aspwil committed Mar 28, 2021
1 parent 0b83ded commit 7a2673a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ndballsim/Simulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public static void run(String file, int max, boolean doLog, boolean step, boolea
break;
//random instruction sets the balls value to (0-255)
case "R":
log("ball set to random value");
ballVal = ran.nextInt(256);//set ball to random int
break;
//apioform instruction add 1 to hive
Expand Down

0 comments on commit 7a2673a

Please sign in to comment.