Php - get particular line from text file

i think my question is probably pretty simple, but i cant seem to find a solution that doesn’t look way too complex. basically im just trying to generate a random number (say between 1 and 100) and whatever that number is, i want to retrieve that line from a specified text file. i can generate the number, open the file and everything, it’s just a matter of getting one particular line.