Numerical simulation of brownian motion with frequency-dependent friction