Generating the noise effects of dephasing