Removed the redundant division from randRange
Removed trailing space inside p tag for the solution
Removed redundant \displaystyle expressions