Averages for polygons formed by random lines in euclidean and hyperbolic planes