trivial code samples for random walks