From 4ebc205ba6332661d6128af5b820c308ed64015f Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 26 Feb 2019 14:57:13 -0600 Subject: Seed time to NULL --- ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ee1301') diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp index b10c296..07dc6b5 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp @@ -39,7 +39,7 @@ int spin_the_wheels(int d, int w) { } int main () { - srand(88888888); //Seeds the RNG of the program to a constant of eight 8s + srand(time(NULL)); int w, d, winCount, winTest; for (w=3; w<=6; w++) { winCount=0; -- cgit v1.2.3