code: def testToDirectedRandom(self):
      random.seed(0)
  
      graph = Graph.Ring(200, directed=False)
      graph.to_directed("random")
  
      self.assertTrue(graph.is_directed())
      self.assertTrue(graph.vcount() == 200)
      edgelist1 = sorted(graph.get_edgelist())
  
      graph = Graph.Ring(200, directed=False)
      graph.to_directed("random")
  
      self.assertTrue(graph.is_directed())
      self.assertTrue(graph.vcount() == 200)
      edgelist2 = sorted(graph.get_edgelist())
  
      self.assertTrue(edgelist1 != edgelist2)
  
file_path: python-igraph/tests/test_conversion.py
imports: import random
  import unittest
  from igraph import Graph, Matrix
label_desc: Use image node_id 5 for calling the DirectedUndirectedTests obj's underlying member method code with example usage: obj.testToDirectedRandom() without return types