Micromagnetic simulations with thermal noise: Physical and numerical aspects