diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-23 17:43:48 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-23 17:43:48 -0600 |
commit | 45912da67cf5de5717ac80349cfd41adf7727aaa (patch) | |
tree | c767bc85da6a845eb0d1537e29d4828da7bc69c8 /ee1301/wk3 | |
parent | ; (diff) | |
download | homework-45912da67cf5de5717ac80349cfd41adf7727aaa.tar homework-45912da67cf5de5717ac80349cfd41adf7727aaa.tar.gz homework-45912da67cf5de5717ac80349cfd41adf7727aaa.tar.bz2 homework-45912da67cf5de5717ac80349cfd41adf7727aaa.tar.lz homework-45912da67cf5de5717ac80349cfd41adf7727aaa.tar.xz homework-45912da67cf5de5717ac80349cfd41adf7727aaa.tar.zst homework-45912da67cf5de5717ac80349cfd41adf7727aaa.zip |
g
Diffstat (limited to 'ee1301/wk3')
-rw-r--r-- | ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp index 1292657..d8db2b1 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp @@ -18,7 +18,7 @@ int spin_the_wheel(int d, int w) { spinOG = rand() % d + 1; for (int i=w; i>0; i--) { spinNew = rand() % d + 1; - if (spinNew==spingOG) { + if (spinNew==spinOG) { //Do nothing } else { return 0; |