aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3A.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
index e9701ff..8ee7a55 100644
--- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
+++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
@@ -16,9 +16,9 @@ using namespace std;
int spin_the_wheel(int d, int w) {
int spinOG=0, spinNew=0, win=0;
- //spinOG = ( (rand() % d) + 1);
+ spinOG = ( (rand() % d) + 1);
for (int i=0; i<w; i++) {
- spinOG = ( (rand() % d) + 1);
+ //spinOG = ( (rand() % d) + 1);
spinNew = ( (rand() % d) + 1);
if (spinOG==spinNew) {
win++;