A simple MC random walk generator on a cubic lattice