seed random number properly; return random lines from a map containing all lines