make_error function

Simulate an error term