A Numerical Technique for Simulating Linear Operations on Random Fields