Horizontal visibility graphs: Exact results for random time series