I know that jmeter has a CSV based controller, but this will just read the lines sequentially, one per thread/iteration.
I also know that you can use __StringFromFile() to read in a line from a file, but as with the CSV this reads sequentially with each thread simply taking the next line in the file.
I also know that you can use __FileToString() to read an entire file into memory as a string. This should be able to be combined with __split() to create an array.
My data set in this file is somewhere around 40,000 lines, one job title per line.
Is there an efficient way to be able to select a random line from the file, or will I have to read the whole thing into memory and then use array notation to select the item?