Whoops. Forgot to remove old code from gallery2.

Also:
  - Corrected behavior for no input (i.e. return random)
  - Added comment for description of Rosenbrock function
Finished gallerytrig.