def METHOD_NAME(self):
    g = Graph.GRG(100, 0.2)
    for i in range(10):
        start = random.randint(0, g.vcount() - 1)
        length = random.randint(0, 10)
        walk_dic = g.random_walk(start, length, return_type='both')
        self.assertTrue('vertices' in walk_dic)
        self.assertTrue('edges' in walk_dic)
        self.validate_edge_walk(g, walk_dic['edges'], start, length)
        self.validate_walk(g, walk_dic['vertices'], start, length)