Now the linear equations are also rendered. Also, fixed some bugs in
the random generation of linear equations.