diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-25 21:43:17 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-25 21:43:17 -0600 |
commit | caec1e6b112dbf146fa312bcff85445c41127121 (patch) | |
tree | 32ed9df0f281d367bec0662f44e3e1caaa879b11 /ee1301/wk3 | |
parent | Some minor tweaking (diff) | |
download | homework-caec1e6b112dbf146fa312bcff85445c41127121.tar homework-caec1e6b112dbf146fa312bcff85445c41127121.tar.gz homework-caec1e6b112dbf146fa312bcff85445c41127121.tar.bz2 homework-caec1e6b112dbf146fa312bcff85445c41127121.tar.lz homework-caec1e6b112dbf146fa312bcff85445c41127121.tar.xz homework-caec1e6b112dbf146fa312bcff85445c41127121.tar.zst homework-caec1e6b112dbf146fa312bcff85445c41127121.zip |
Change nothing
Diffstat (limited to 'ee1301/wk3')
-rw-r--r-- | ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 4 |
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++; |