The detail will depend on whether the lines are pairs or if you just want two consecutive lines, but simply:
  • Read the file into an array (see the ReadFile() UDF in the UDF section)
  • Count the number or lines (UBound())
  • Use RND() & SRND() to get a line number within the range.
  • Display random line and random+1 line from the array.