added randomVertex()