From 747ae59bca51bcdad70dc89e9b5bb0578c2e5d68 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Sun, 24 Feb 2019 12:45:29 -0600 Subject: Rage at 3A --- ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'ee1301') diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp index e22ef89..55e8f6c 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp @@ -12,31 +12,38 @@ One-armed Bandit Simulator #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=1; i