Get information from text file randomly

I am writing a book systrm management code, I adding new systems, I want to add random book reccommender. But I dont know how can get book's informations with book ID.

Not enough information. You haven't explained how you store the book information.
Topic archived. No new replies allowed.