Random events and narrow escapes