From 6ca033038a8ffcf54827b0d9c7f38032050502b1 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 23 Apr 2019 13:07:28 -0500 Subject: Change nothing --- ee1301/wk6/lab5/vectorArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ee1301') diff --git a/ee1301/wk6/lab5/vectorArray.cpp b/ee1301/wk6/lab5/vectorArray.cpp index 279988c..8d2ad38 100644 --- a/ee1301/wk6/lab5/vectorArray.cpp +++ b/ee1301/wk6/lab5/vectorArray.cpp @@ -34,7 +34,7 @@ double randVec() { double momentum(double velocity) { double mass; - if (rand()%2+1==1) { + if (rand()%2+1==0) { mass=rand()%10+1; } else { mass=rand()%10*-1+1; -- cgit v1.2.3