We consider the motion of a Brownian particle moving in a potential field and\ndriven by dichotomous noise with exponential correlation. Traditionally, the\nanalytic as well as the numerical treatments of the problem, in general, rely\non Fokker-Planck description. We present a method for direct numerical\nsimulation of dichotomous noise to solve the Langevin equation. The method is\napplied to calculate nonequilibrium fluctuation induced current in a symmetric\nperiodic potential using asymmetric dichotomous noise and compared to\nFokker-Planck-Master equation based algorithm for a range of parameter values.\nOur second application concerns the study of resonant activation over a\nfluctuating barrier.\n