I'm trying to figure out how to create a short program that accesses a separate file with a list of names and randomly prints one of the names in that file. For instance the file I would be accessing would look something like:
How exactly might I go about using math.random to reference what number it generates with the name in the list in the other file? Any help would be much appreciated, and if you need any clarification just let me know. Thanks in advance!