From fd1296f97b53490c1bb5a3152da38c6a6c01048a Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Sat, 23 Feb 2019 18:23:41 -0600 Subject: AHHHHHHHHHHHHHHHHHHHH --- ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 31 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp index fd051fd..e22ef89 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp @@ -11,33 +11,32 @@ One-armed Bandit Simulator #include #include #include -#include +#include using namespace std; + int spin_the_wheel(int d, int w) { int spinOG, spinNew; spinOG = rand() % d + 1; - for (int i=w; i>0; i--) { + for (int i=1; i