diff options
author | RossTheRoss <msattr@gmail.com> | 2019-04-23 13:07:28 -0500 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-04-23 13:07:28 -0500 |
commit | 6ca033038a8ffcf54827b0d9c7f38032050502b1 (patch) | |
tree | 6c9637e5c6d0c434a1afe563662d9c82f6de4f4b /ee1301/wk6 | |
parent | E (diff) | |
download | homework-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')
-rw-r--r-- | ee1301/wk6/lab5/vectorArray.cpp | 2 |
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; |