<｜begin▁of▁sentence｜>### Instruction:
Given a simple graph with 5 vertices connected in a loop (0 connected to 1, 1 to 2, 2 to 3, 3 to 4, and 4 back to 0), how can you use the layout_random function from igraph with 2 dimensions to place the vertices of the graph randomly?
### Response:
from igraph import Graph

# Create a simple graph with 5 vertices and some edges
g = Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)])

# Generate a random layout for the graph in 2D
g_layout = g.layout_random(dim=2)

# Print the random layout coordinates for each vertex
print(g_layout.coords)
<|EOT|>
