aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk6/lab5
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-04-23 13:07:28 -0500
committerRossTheRoss <msattr@gmail.com>2019-04-23 13:07:28 -0500
commit6ca033038a8ffcf54827b0d9c7f38032050502b1 (patch)
tree6c9637e5c6d0c434a1afe563662d9c82f6de4f4b /ee1301/wk6/lab5
parentE (diff)
downloadhomework-6ca033038a8ffcf54827b0d9c7f38032050502b1.tar
homework-6ca033038a8ffcf54827b0d9c7f38032050502b1.tar.gz
homework-6ca033038a8ffcf54827b0d9c7f38032050502b1.tar.bz2
homework-6ca033038a8ffcf54827b0d9c7f38032050502b1.tar.lz
homework-6ca033038a8ffcf54827b0d9c7f38032050502b1.tar.xz
homework-6ca033038a8ffcf54827b0d9c7f38032050502b1.tar.zst
homework-6ca033038a8ffcf54827b0d9c7f38032050502b1.zip
Change nothing
Diffstat (limited to 'ee1301/wk6/lab5')
-rw-r--r--ee1301/wk6/lab5/vectorArray.cpp2
1 files changed, 1 insertions, 1 deletions
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;