Matrix B is all -1 because the second rand() call (line 17) didn't convert to double before divide by integer
Matrix B is all -1 because the second rand() call (line 17) didn't convert to double before divide by integer