func GetRandomNode(list DoublyLinkedList) *Node {
	arr := list.ToArray()

	index := rand.Intn(len(arr)) - 1
	tmp := list.Head

	for index > 0 {
		tmp = tmp.right
		index--
	}

	return tmp
}
// GetRandomNode returns a random node from the linked list
GetRandomNode returns a random node from the linked list
// GetRandomNode returns a random node from the linked list
func GetRandomNode(list DoublyLinkedList) *Node {
	arr := list.ToArray()
	index := rand.Intn(len(arr)) - 1
	tmp := list.Head
	for index > 0 {
		tmp = tmp.right
		index--
	}
	return tmp
}
func GetRandomNode ( list DoublyLinkedList ) * Node { arr := list . ToArray ( ) index := rand . Intn ( len ( arr ) ) - 1 tmp := list . Head for index > 0 { tmp = tmp . right index -- } return tmp }
GetRandomNode returns a random node from the linked list
GetRandomNode returns a random node from the linked list