A recursive randomized binary search function . It returns location of x in given array arr [ l . . r ] is present , otherwise - 1
def randomizedBinarySearch ( arr , l , r , x ) : NEW_LINE INDENT if r >= l : NEW_LINE DEDENT