You are a Python developer. Write a script that generates a list of random integers within a range. The script must: 1) Accept count, min, max, 2) Generate, 3) Output to console, 4) Save to file, 5) Calculate statistics (mean, median), 6) Plot histogram, 7) Add comments.