Exact numerical simulation of power-law noises