[random-walk] removed assert in cpp version