C # program to Select a Random Node from a tree
using System ; class GFG { class Node { public int data ; public int children ; public Node left , right ; } static Node newNode ( int data ) { Node temp = new Node ( ) ; temp . data = data ; temp . left = temp . right = null ; temp . children = 0 ; return temp ; }