Update r.html.markdown

Fixed a problem with the jiggle function - variable x wasn't being updated before being returned, and the rnorm function was being asked to return x output values, rather than one.

After testing, the values given the documentation are now correct.