From 7a2673a05346c2fcde069a4895154980512beb5d Mon Sep 17 00:00:00 2001 From: aspwil Date: Sun, 28 Mar 2021 02:07:57 -0600 Subject: [PATCH] added comment and log for random instruction --- src/ndballsim/Simulator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ndballsim/Simulator.java b/src/ndballsim/Simulator.java index 545e9fb..5d393fd 100644 --- a/src/ndballsim/Simulator.java +++ b/src/ndballsim/Simulator.java @@ -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